VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
airborneAggregatedMovementActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 
13 
16 class DtRwPropertiesMap;
17 
22 {
23 public:
25  static DtSimComponent* creator(const DtString& name, DtLocalObject* object,
26  DtSimulationServices* simManager, DtComponentDescriptor* compDescriptor,
27  DtReaderWriterRegistry* parentRegistry);
28 
31  DtSimulationServices* simManager, DtComponentDescriptor* compDescriptor,
32  DtReaderWriterRegistry* parentRegistry = 0);
33 
35  virtual ~DtAirborneAggregatedMovementActuator() override;
36 
38  virtual bool init() override;
39 
41  virtual const char* type() const override;
42 
45  virtual void preFirstTickInit() override;
46 
48  virtual void calculateFuelUsage(double distanceTraveled, double velocity, double altitude) override;
49 
51  virtual double emptyMass() const;
52 
54  virtual double fullMass() const;
55 
57  virtual double currentMass() const;
58 
60  virtual double holdingPatternSpeed() const;
61 
62 protected:
64  virtual bool findProperties();
65 
66  virtual DtAircraftFuelConsumptionModel * createFuelConsumptionModel();
67 
69  virtual void setAviationFuel();
70 
72 
79 
80  std::unique_ptr<DtAircraftFuelConsumptionModel> myFuelConsumptionModel;
81 
82 private:
85 
88 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
static DtSimComponent * creator(const DtString &name, DtLocalObject *object, DtSimulationServices *simManager, DtComponentDescriptor *compDescriptor, DtReaderWriterRegistry *parentRegistry)
Creator function to be registered with the DtSimComponentFactory – see main.cxx.
double myHoldPatternSpeed
Definition: airborneAggregatedMovementActuator.h:78
End User Description: Actuator for moving aggregated aggregates along the ground. This actuator place...
Definition: aggregatedMovementActuator.h:47
DtRwBoolean * myHasFuelProperty
Definition: airborneAggregatedMovementActuator.h:76
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
End User Description: Actuator for moving airborne aggregated aggregates. Uses Descriptor Type: DtAct...
Definition: airborneAggregatedMovementActuator.h:20
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 bool init() override
Perform any initialization required by the actuator.
Definition: readerWriterRegistry.h:39
std::unique_ptr< DtAircraftFuelConsumptionModel > myFuelConsumptionModel
Definition: airborneAggregatedMovementActuator.h:80
Implements the Breguet range equation V(L/D) Range = ---—*ln(Wi/Wf) g*SFC V = Velocity L/D = Lift/Dra...
Definition: aircraftFuelConsumptionModel.h:28
DtRwPropertiesMap * myFuelTanksProperty
Definition: airborneAggregatedMovementActuator.h:74
DtAirborneAggregatedMovementDescriptor * myAirborneDescriptor
Definition: airborneAggregatedMovementActuator.h:71
virtual const char * type() const override
Returns a string from simComponentTypes.h, identifying the type of component.
Acts as a map for properties. A map is a definition that has a key and a prototype, with values being the key and prototype pair. The key can only be a string (DtRwStringType), int (DtRwIntType, DtRwInt8Type, DtRwInt16Type, DtRwInt32Type), or real (DtRwRealType, DtRwReal32Type, DtRwReal64Type).
Definition: rwPropertiesMap.h:41
DtRwBoolean * myIsAirborneProperty
Definition: airborneAggregatedMovementActuator.h:73
virtual void calculateFuelUsage(double distanceTraveled, double velocity, double altitude)
Calculates the amount of fuel used. Implementation is responsible for setting appropriate properties ...
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
const DtAggregatedMovementActuator & operator=(const DtAggregatedMovementActuator &orig)
assignment operator
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtRwBoolean * myEngagementFlag
Definition: airborneAggregatedMovementActuator.h:77
DtRwReal * myFuelAmountProperty
Definition: airborneAggregatedMovementActuator.h:75
DtAirborneAggregatedMovementDescriptor is the descriptor for DtAirborneAggregatedMovementActuator.
Definition: airborneAggregatedMovementDescriptor.h:17
A locally simulated VRF object.
Definition: localObject.h:98

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)