VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
encumbranceActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 VT MAK, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 
15 class DtString;
16 class DtSimManager;
17 class DtAnalogOutputPort;
19 
26 {
27 
28 public:
29 
32  DtEncumbranceActuator(const DtString& name,
33  DtVrfObject* owner,
34  DtSimManager* simManager,
35  DtComponentDescriptor* desc = 0,
36  DtReaderWriterRegistry* parentRegistry = 0);
37 
39  virtual ~DtEncumbranceActuator();
40 
42  virtual bool init();
43 
46  virtual const char* type() const;
47 
51  virtual void tick();
52 
56  static DtSimComponent * creator(const DtString& name,
57  DtVrfObject* owner,
58  DtSimManager* simManager,
59  DtComponentDescriptor* desc = 0,
60  DtReaderWriterRegistry* parentRegistry = 0);
61 
62 protected:
63 
65  virtual bool createPorts();
66 
68  virtual double computeEmbarkedObjectsWeight();
69 
71  virtual double computeFuelWeight();
72 
73 private:
74 
77 
80 
83 
84 protected:
87 
91 
98 
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
const DtActuatorComponent & operator=(const DtActuatorComponent &orig)
assignment operator
double myLastFuelWeight
last fuel weight in kilograms
Definition: encumbranceActuator.h:89
DtEncumbranceActuatorDescriptor * myEncumbranceDescriptor
type-cast pointer
Definition: encumbranceActuator.h:86
virtual bool init()
Overridden to cache a pointer to the entity's radio in this class.
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
DtAnalogOutputPort * myWeightFuelOutputPort
PortsOutput Port Name: weight-fuel Output Port Description: Weight of fuel that the object is carryin...
Definition: encumbranceActuator.h:97
End User Description: DtActuator is the base class for all actuator model components.
Definition: actuatorComponent.h:48
DtEncumbranceActuatorDescriptor is used by DtEncumbranceActuator.
Definition: encumbranceActuatorDescriptor.h:19
Instances of DtAnalogOutputPort are input ports through which data producers can send real numbers...
Definition: analogIOPort.h:45
virtual void tick()
This gives the thread of control to the component.
DtAnalogOutputPort * myWeightPayloadOutputPort
Output Port Name: weight-payload Output Port Description: Weight of payload that the object is carryi...
Definition: encumbranceActuator.h:102
virtual bool createPorts()
Called by init.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtEncumbranceActuator tallies additional mass from resources and embarked objects.
Definition: encumbranceActuator.h:25
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
double myLastPayloadWeight
Definition: encumbranceActuator.h:90
virtual const char * type() const =0
Returns a string identifies the class type of component.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)