VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
shipAisController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2022 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 
14 
15 class DtSimMessage;
16 class DtGenericPsr;
17 
20 {
21 public:
22 
25  DtShipAisController(const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
26  DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
27 
29  virtual ~DtShipAisController() override;
30 
32  virtual bool init() override;
33 
34  virtual void preFirstTickInit() override;
35 
37  virtual bool postAddComponentsInit() override;
38 
41  virtual const char* type() const override;
42 
46  static DtSimComponent* creator(const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
47  DtComponentDescriptor* desc = 0, DtReaderWriterRegistry* parentRegistry = 0);
48 
50  virtual void registerSetRequestMsgCallbacks();
51 
53 
54  static void setAisDataCallback(DtSimMessage* msg, void* usrData);
55  virtual void processSetAisData(DtSimMessage* msg);
57 
59 
67 
68 protected:
69  virtual bool createProcessState();
70 
72  virtual void setFromProcessState();
73 
74 private:
75 
78 
81 
84 
85 protected:
86  DtGenericPsr* myProcessState = nullptr;
87 
88 
89 };
90 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
virtual bool postAddComponentsInit() override
Calls enableTaskTypes()
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
virtual const char * type() const override=0
This returns a string from compTypes.h, and identifies the type of component.
Definition: readerWriterRegistry.h:39
static const DtString DtAisShipClassSetVariableName
Name declarations used to map variables in lua tasks.
Definition: shipAisController.h:65
virtual bool init() override
Calls setRadio()
static const DtString DtAisImoSetVariableName
Name declarations used to map variables in lua tasks.
Definition: shipAisController.h:61
File: simMsg.h.
Definition: simMessage.h:35
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:31
static const DtString DtAisStatusSetVariableName
Name declarations used to map variables in lua tasks.
Definition: shipAisController.h:64
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:97
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
Sets the AIS data published for a ship.
Definition: shipAisController.h:19
A DtVrfProcessStateRepository subclass that keeps an arbitrary key/value pair set of data...
Definition: genericPsr.h:17
static const DtString DtAisEtaSetVariableName
Name declarations used to map variables in lua tasks.
Definition: shipAisController.h:62
static const DtString DtAisDestinationSetVariableName
Name declarations used to map variables in lua tasks.
Definition: shipAisController.h:63
static const DtString DtAisMmsiSetVariableName
Name declarations used to map variables in lua tasks.
Definition: shipAisController.h:60
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)