VR-Forces 4.10 Class Documentation
 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 
27 {
28 private:
35 
36 public:
39  DtSimManager* simManager, DtComponentDescriptor* desc=0, DtReaderWriterRegistry *parentRegistry=0);
40 
42  virtual ~DtAirportLightingController();
43 
45  virtual bool init();
46 
48  virtual void registerCallbacks();
49 
51  virtual void deregisterCallbacks();
52 
54  virtual void preFirstTickInit();
55 
57  virtual const char* type() const;
58 
60  virtual void tick();
61 
63  static DtSimComponent* creator(const DtString& name, DtVrfObject* owner, DtSimManager* simManager,
64  DtComponentDescriptor* desc=0, DtReaderWriterRegistry* parentRegistry=0);
65 
66 protected:
67 
70  static void changeAirportLightingCallback(const DtSimCommand& cmd, void* usr);
71  virtual void processChangeAirportLightingCommand(const DtChangeAirportLightingCommand& cmd);
73 
75  virtual void resendNetworkLightSettings();
76 
78  virtual void sendNetworkLightSetting(const DtString& primaryIdentifier,
79  const DtString& secondaryIdentifier, const DtString& tertiaryIdentifier, const DtColor& color);
80 
82  virtual void setStoredLightSetting(const DtString& primaryIdentifier,
83  const DtString& secondaryIdentifier, const DtString& tertiaryIdentifier, const DtColor& color);
84 
86  virtual DtAirportLightingControllerPSR* createPSR();
87 
89  virtual DtString keyFromIdentifiers(const DtString& primaryIdentifier,
90  const DtString& secondaryIdentifier, const DtString& tertiaryIdentifier);
91 
93  virtual void identifiersFromKey(const DtString& key, DtString& primaryIdentifier,
94  DtString& secondaryIdentifier, DtString& tertiaryIdentifier);
95 
96 protected:
97 
99 
103 
105 
106 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtAirportLightingControllerPSR is a process state repository which holds state variables for the DtAi...
Definition: airportLightingControllerPSR.h:20
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:20
DtTime myNextUpdateTime
Definition: airportLightingController.h:104
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Base class for any DtSimCommand which causes changes to airport lighting.
Definition: changeAirportLightingCommand.h:17
Definition: readerWriterRegistry.h:39
virtual const char * type() const =0
Returns a string identifies the class type of component.
virtual bool init()
Calls setRadio()
Definition: color.h:25
DtAirportLightingController is a controller that calculates and publishes terrain changes due to dama...
Definition: airportLightingController.h:26
DtAirportLightingControllerDescriptor * myAirportLightingDescriptor
Definition: airportLightingController.h:98
virtual void tick()
This gives the thread of control to the component.
DtSimCommand is an abstract base class from which commands can derive.
Definition: simCommand.h:32
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
DtAirportLightingControllerPSR * myProcessState
Container for state data associated with this component.
Definition: airportLightingController.h:102
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
Instances of DtAirportLightingControllerDescriptor are used to specify the parameters for a DtAirport...
Definition: airportLightingControllerDescriptor.h:18

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)