VR-Forces 5.0.2 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 #include <boost/scoped_ptr.hpp>
14 
17 class DtRwPropertiesMap;
18 
23 {
24 public:
26  static DtSimComponent* creator(const DtString& name, DtLocalObject* object,
27  DtSimulationServices* simManager, DtComponentDescriptor* compDescriptor,
28  DtReaderWriterRegistry* parentRegistry);
29 
32  DtSimulationServices* simManager, DtComponentDescriptor* compDescriptor,
33  DtReaderWriterRegistry* parentRegistry = 0);
34 
37 
39  virtual bool init();
40 
42  virtual const char* type() const;
43 
46  virtual void preFirstTickInit();
47 
49  virtual void calculateFuelUsage(
50  double distanceTraveled,
51  double velocity,
52  double altitude);
53 
55  virtual double emptyMass() const;
56 
58  virtual double fullMass() const;
59 
61  virtual double currentMass() const;
62 
64  virtual double holdingPatternSpeed() const;
65 
66 protected:
68  virtual bool findProperties();
69 
70  virtual DtAircraftFuelConsumptionModel * createFuelConsumptionModel();
71 
73  virtual void setAviationFuel();
74 
76 
83 
84  boost::scoped_ptr<DtAircraftFuelConsumptionModel> myFuelConsumptionModel;
85 
86 private:
89 
92 };
virtual const char * type() const
Returns a string from simComponentTypes.h, identifying the type of component.
#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:82
End User Description: Actuator for moving aggregated aggregates along the ground. This actuator place...
Definition: aggregatedMovementActuator.h:47
DtRwBoolean * myHasFuelProperty
Definition: airborneAggregatedMovementActuator.h:80
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:21
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
boost::scoped_ptr< DtAircraftFuelConsumptionModel > myFuelConsumptionModel
Definition: airborneAggregatedMovementActuator.h:84
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:78
DtAirborneAggregatedMovementDescriptor * myAirborneDescriptor
Definition: airborneAggregatedMovementActuator.h:75
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:77
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:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
virtual bool init()
Perform any initialization required by the actuator.
DtRwBoolean * myEngagementFlag
Definition: airborneAggregatedMovementActuator.h:81
DtRwReal * myFuelAmountProperty
Definition: airborneAggregatedMovementActuator.h:79
DtAirborneAggregatedMovementDescriptor is the descriptor for DtAirborneAggregatedMovementActuator.
Definition: airborneAggregatedMovementDescriptor.h:17
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 Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)