VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
shipClutterAreaControllerDescriptor.h
Go to the documentation of this file.
1 
6 
7 #pragma once
8 
13 #include <unordered_set>
14 
15 
19 {
20 public:
22  class MMSIEntry : public DtReaderWriter
23  {
24  public:
25  MMSIEntry(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0);
26  MMSIEntry(const MMSIEntry& orig);
27 
28  virtual int mmsi() const;
29  virtual const DtRwEntityType& entityType() const;
30 
34  virtual const char* readerWriterType() const override;
35 
37  static const char* theXmlType();
38 
39  virtual const char* xmlType() const override {
40  return theXmlType();
41  }
42 
43  protected:
46  };
47 
49  class IMOEntry : public DtReaderWriter
50  {
51  public:
52  IMOEntry(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0);
53  IMOEntry(const IMOEntry& orig);
54 
55  virtual int imo() const;
56  virtual const DtRwEntityType& entityType() const;
57 
61  virtual const char* readerWriterType() const override;
62 
64  static const char* theXmlType();
65 
66  virtual const char* xmlType() const override {
67  return theXmlType();
68  }
69 
70  protected:
73  };
74 
77  {
78  public:
79  VesselTypeCodeEntry(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0);
81 
82  virtual const DtNLengthIntegerVector& typeCodeLeadingDigits() const;
83  virtual const DtNLengthIntegerVector& explicitTypeCodes() const;
84  virtual const std::unordered_set<int>& combinedTypeCodes() const;
85  virtual const DtRwEntityTypeList& entityTypes() const;
86  virtual bool useHullLength() const;
87 
91  virtual const char* readerWriterType() const override;
92 
94  static const char* theXmlType();
95 
96  virtual const char* xmlType() const override {
97  return theXmlType();
98  }
99 
100  protected:
105  mutable std::unordered_set<int> myCombinedTypeCodes;
106  };
107 
111 
114  DtReaderWriterRegistry * parentRegistry = 0);
115 
117  virtual ~DtShipClutterAreaControllerDescriptor() override;
118 
122  DtReaderWriterRegistry * parentRegistry = 0);
123 
127 
130  virtual DtString type() const override;
131 
132  virtual const MMSIMappingList& mmsiMappingList() const;
133  virtual const IMOMappingList& imoMappingList() const;
134  virtual const VesselTypeCodeList& vesselTypeCodeList() const;
135  virtual const DtRwEntityTypeList& excludedEntityTypes() const;
136  virtual const DtRwTemplatedIntList& excludedMMSIList() const;
137  virtual const DtRwTemplatedIntList& excludedIMOList() const;
138 
140 
141  virtual int maxClutterShipsPerArea() const;
142  virtual void setMaxClutterShipsPerArea(int n);
144 
146 
147  virtual int maxEntitiesCreatedPerTick() const;
148  virtual void setEntitiesCreatedPerTick(int n);
150 
152 
153  virtual double checkPeriod() const;
154  virtual void setCheckPeriod(int p);
156 
158 
159  virtual double requestPeriod() const;
160  virtual void setRequestPeriod(int p);
162 
163 
164  virtual DtComponentDescriptor* clone(DtReaderWriterRegistry* parentRegistry = 0) const override;
165 
167  static DtComponentDescriptor* creator();
168 
169 protected:
170 
177 
181 
186 
191 
197 
202 
204 };
Description: DtNLengthIntegerVector is a named, readable/writable vector of integers of arbitrary len...
Definition: nLengthIntegerVector.h:28
ReaderWriter class which represents IMO mapping entry.
Definition: shipClutterAreaControllerDescriptor.h:49
Definition: rwTemplatedList.h:213
DtRwEntityTypeList myEntityTypes
Definition: shipClutterAreaControllerDescriptor.h:103
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
IMOMappingList myIMOMappingList
Definition: shipClutterAreaControllerDescriptor.h:172
DtNLengthIntegerVector myTypeCodeLeadingDigits
Definition: shipClutterAreaControllerDescriptor.h:101
DtRwReal myCheckPeriod
Parameter Name: check-period Parameter Description: The period at which ships are re-checked if the...
Definition: shipClutterAreaControllerDescriptor.h:196
class DtRwEntityTypeList:
Definition: rwEntityTypeList.h:23
Definition: readerWriter.h:85
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
ReaderWriter class which represents vessel type entry.
Definition: shipClutterAreaControllerDescriptor.h:76
DtRwInt myIMO
Definition: shipClutterAreaControllerDescriptor.h:71
DtRwTemplatedIntList myExcludedIMOList
Definition: shipClutterAreaControllerDescriptor.h:176
DtComponentDescriptor & operator=(const DtComponentDescriptor &orig)
assignment
virtual const char * xmlType() const override
Definition: shipClutterAreaControllerDescriptor.h:96
ReaderWriter class which represents MMSI mapping entry.
Definition: shipClutterAreaControllerDescriptor.h:22
DtRwInt myMaxEntitiesCreatedPerTick
Parameter Name: max-entities-created-per-tick Parameter Description: The maximum number of clutter ...
Definition: shipClutterAreaControllerDescriptor.h:190
MMSIMappingList myMMSIMappingList
Definition: shipClutterAreaControllerDescriptor.h:171
DtNLengthIntegerVector myExplicitTypeCodes
Definition: shipClutterAreaControllerDescriptor.h:102
virtual const char * xmlType() const override
Definition: shipClutterAreaControllerDescriptor.h:66
DtRwBoolean myUseHullLength
Definition: shipClutterAreaControllerDescriptor.h:104
Description: Readable, Writable int.
Definition: rwInt.h:25
DtRwInt myMaxClutterShipsPerArea
Parameter Name: max-clutter-ships-per-area Parameter Description: The maximum number of clutter shi...
Definition: shipClutterAreaControllerDescriptor.h:185
std::unordered_set< int > myCombinedTypeCodes
Definition: shipClutterAreaControllerDescriptor.h:105
VesselTypeCodeList myVesselTypeCodeList
Definition: shipClutterAreaControllerDescriptor.h:173
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=NULL) const
DtRwEntityType myEntityType
Definition: shipClutterAreaControllerDescriptor.h:45
DtRwTemplatedIntList myExcludedMMSIList
Definition: shipClutterAreaControllerDescriptor.h:175
DtRwTemplatedListPtr< MMSIEntry, true > MMSIMappingList
Definition: shipClutterAreaControllerDescriptor.h:108
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
File: rwEntType.h.
Definition: rwEntityType.h:26
DtRwTemplatedListPtr< IMOEntry, true > IMOMappingList
Definition: shipClutterAreaControllerDescriptor.h:109
virtual DtString type() const
Returns the type of component this descriptor describes. Used to create the descriptor on read from a...
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtRwInt myMMSI
Definition: shipClutterAreaControllerDescriptor.h:44
DtRwReal myRequestPeriod
Parameter Name: request-period Parameter Description: The period at which to request track data fro...
Definition: shipClutterAreaControllerDescriptor.h:201
static DtComponentDescriptor * creator()
/******************************************************************************* ** Copyright (c) 202...
Definition: shipClutterAreaControllerDescriptor.h:18
DtRwEntityType myEntityType
Definition: shipClutterAreaControllerDescriptor.h:72
DtRwEntityTypeList myExcludedEntityTypes
Definition: shipClutterAreaControllerDescriptor.h:174
DtRwTemplatedListPtr< VesselTypeCodeEntry, true > VesselTypeCodeList
Definition: shipClutterAreaControllerDescriptor.h:110
virtual const char * xmlType() const override
Definition: shipClutterAreaControllerDescriptor.h:39

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)