VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
airportLightingController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
11 
12 #pragma once
13 
16 
19 class DtSimCommand;
21 class DtColor;
22 
28 {
29 private:
36 
37 public:
40  DtSimulationServices* simManager, DtComponentDescriptor* desc=0, DtReaderWriterRegistry *parentRegistry=0);
41 
43  virtual ~DtAirportLightingController();
44 
46  virtual bool init();
47 
49  virtual void registerCallbacks();
50 
52  virtual void deregisterCallbacks();
53 
55  virtual void preFirstTickInit();
56 
58  virtual const char* type() const;
59 
61  virtual void tick();
62 
64  static DtSimComponent* creator(const DtString& name, DtLocalObject* owner, DtSimulationServices* simManager,
65  DtComponentDescriptor* desc=0, DtReaderWriterRegistry* parentRegistry=0);
66 
67 protected:
68 
71  static void changeAirportLightingCallback(const DtSimCommand& cmd, void* usr);
72  virtual void processChangeAirportLightingCommand(const DtChangeAirportLightingCommand& cmd);
74 
76  virtual void resendNetworkLightSettings();
77 
79  virtual void sendNetworkLightSetting(const DtString& primaryIdentifier,
80  const DtString& secondaryIdentifier, const DtString& tertiaryIdentifier, const DtColor& color);
81 
83  virtual void setStoredLightSetting(const DtString& primaryIdentifier,
84  const DtString& secondaryIdentifier, const DtString& tertiaryIdentifier, const DtColor& color);
85 
87  virtual DtAirportLightingControllerPSR* createPSR();
88 
90  virtual DtString keyFromIdentifiers(const DtString& primaryIdentifier,
91  const DtString& secondaryIdentifier, const DtString& tertiaryIdentifier);
92 
94  virtual void identifiersFromKey(const DtString& key, DtString& primaryIdentifier,
95  DtString& secondaryIdentifier, DtString& tertiaryIdentifier);
96 
97 protected:
98 
100 
104 
106 
107 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtAirportLightingControllerPSR is a process state repository which holds state variables for the DtAi...
Definition: airportLightingControllerPSR.h:20
virtual const char * type() const override=0
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:22
DtTime myNextUpdateTime
Definition: airportLightingController.h:105
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Base class for any DtSimCommand which causes changes to airport lighting.
Definition: changeAirportLightingCommand.h:17
Definition: readerWriterRegistry.h:39
Definition: color.h:25
DtAirportLightingController is a controller that calculates and publishes terrain changes due to dama...
Definition: airportLightingController.h:27
virtual bool init() override
Calls setRadio()
DtAirportLightingControllerDescriptor * myAirportLightingDescriptor
Definition: airportLightingController.h:99
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
DtSimCommand is an abstract base class from which commands can derive. It manages the read/write capa...
Definition: simCommand.h:32
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:94
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
DtAirportLightingControllerPSR * myProcessState
Container for state data associated with this component. This state is saved and restored as part of ...
Definition: airportLightingController.h:103
Instances of DtAirportLightingControllerDescriptor are used to specify the parameters for a DtAirport...
Definition: airportLightingControllerDescriptor.h:18
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

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)