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;
35 
37  static const char* theXmlType();
38 
39  virtual const char* xmlType() const
40  {
41  return theXmlType();
42  }
43 
44  protected:
47  };
48 
50  class IMOEntry : public DtReaderWriter
51  {
52  public:
53  IMOEntry(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0);
54  IMOEntry(const IMOEntry& orig);
55 
56  virtual int imo() const;
57  virtual const DtRwEntityType& entityType() const;
58 
62  virtual const char* readerWriterType() const;
63 
65  static const char* theXmlType();
66 
67  virtual const char* xmlType() const
68  {
69  return theXmlType();
70  }
71 
72  protected:
75  };
76 
79  {
80  public:
81  VesselTypeCodeEntry(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0);
83 
84  virtual const DtNLengthIntegerVector& typeCodeLeadingDigits() const;
85  virtual const DtNLengthIntegerVector& explicitTypeCodes() const;
86  virtual const std::unordered_set<int>& combinedTypeCodes() const;
87  virtual const DtRwEntityTypeList& entityTypes() const;
88  virtual bool useHullLength() const;
89 
93  virtual const char* readerWriterType() const;
94 
96  static const char* theXmlType();
97 
98  virtual const char* xmlType() const
99  {
100  return theXmlType();
101  }
102 
103  protected:
108  mutable std::unordered_set<int> myCombinedTypeCodes;
109  };
110 
114 
117  DtReaderWriterRegistry * parentRegistry = 0);
118 
121 
125  DtReaderWriterRegistry * parentRegistry = 0);
126 
130 
133  virtual DtString type() const override;
134 
135  virtual const MMSIMappingList& mmsiMappingList() const;
136  virtual const IMOMappingList& imoMappingList() const;
137  virtual const VesselTypeCodeList& vesselTypeCodeList() const;
138  virtual const DtRwEntityTypeList& excludedEntityTypes() const;
139 
141 
142  virtual int maxClutterShipsPerArea() const;
143  virtual void setMaxClutterShipsPerArea(int n);
145 
147 
148  virtual int maxEntitiesCreatedPerTick() const;
149  virtual void setEntitiesCreatedPerTick(int n);
151 
153 
154  virtual double checkPeriod() const;
155  virtual void setCheckPeriod(int p);
157 
159 
160  virtual double requestPeriod() const;
161  virtual void setRequestPeriod(int p);
163 
164 
165  virtual DtComponentDescriptor* clone(DtReaderWriterRegistry* parentRegistry = 0) const;
166 
168  static DtComponentDescriptor* creator();
169 
170 protected:
171 
176 
180 
185 
190 
196 
201 
203 };
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:50
DtRwEntityTypeList myEntityTypes
Definition: shipClutterAreaControllerDescriptor.h:106
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
IMOMappingList myIMOMappingList
Definition: shipClutterAreaControllerDescriptor.h:173
DtNLengthIntegerVector myTypeCodeLeadingDigits
Definition: shipClutterAreaControllerDescriptor.h:104
DtRwReal myCheckPeriod
Parameter Name: check-period Parameter Description: The period at which ships are re-checked if the...
Definition: shipClutterAreaControllerDescriptor.h:195
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:78
DtRwInt myIMO
Definition: shipClutterAreaControllerDescriptor.h:73
DtComponentDescriptor & operator=(const DtComponentDescriptor &orig)
assignment
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:189
MMSIMappingList myMMSIMappingList
Definition: shipClutterAreaControllerDescriptor.h:172
DtNLengthIntegerVector myExplicitTypeCodes
Definition: shipClutterAreaControllerDescriptor.h:105
DtRwBoolean myUseHullLength
Definition: shipClutterAreaControllerDescriptor.h:107
virtual const char * xmlType() const
Definition: shipClutterAreaControllerDescriptor.h:39
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:184
std::unordered_set< int > myCombinedTypeCodes
Definition: shipClutterAreaControllerDescriptor.h:108
VesselTypeCodeList myVesselTypeCodeList
Definition: shipClutterAreaControllerDescriptor.h:174
virtual DtComponentDescriptor * clone(DtReaderWriterRegistry *parentRegistry=NULL) const
DtRwEntityType myEntityType
Definition: shipClutterAreaControllerDescriptor.h:46
DtRwTemplatedListPtr< MMSIEntry, true > MMSIMappingList
Definition: shipClutterAreaControllerDescriptor.h:111
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
File: rwEntType.h.
Definition: rwEntityType.h:23
DtRwTemplatedListPtr< IMOEntry, true > IMOMappingList
Definition: shipClutterAreaControllerDescriptor.h:112
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:45
DtRwReal myRequestPeriod
Parameter Name: request-period Parameter Description: The period at which to request track data fro...
Definition: shipClutterAreaControllerDescriptor.h:200
static DtComponentDescriptor * creator()
/******************************************************************************* ** Copyright (c) 202...
Definition: shipClutterAreaControllerDescriptor.h:18
virtual const char * xmlType() const
Definition: shipClutterAreaControllerDescriptor.h:67
virtual const char * xmlType() const
Definition: shipClutterAreaControllerDescriptor.h:98
DtRwEntityType myEntityType
Definition: shipClutterAreaControllerDescriptor.h:74
DtRwEntityTypeList myExcludedEntityTypes
Definition: shipClutterAreaControllerDescriptor.h:175
DtRwTemplatedListPtr< VesselTypeCodeEntry, true > VesselTypeCodeList
Definition: shipClutterAreaControllerDescriptor.h:113

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)