38 virtual const char*
type()
const override;
44 virtual void tick()
override;
57 virtual void logEngagements();
60 virtual void logResources();
64 virtual bool validateEngagementProperties();
67 virtual void logCurrentEngagementStatus(
bool onlyOnChange,
DtTime endTime = -1);
70 virtual void logCurrentEngagementCasualties(
bool onlyOnChange);
73 virtual void logCurrentEngagementEquipmentDamage(
bool onlyOnChange);
75 virtual void logCurrentEngagementAttacks(
DtTime simTime);
77 virtual DtEntityType entityTypeFromResourceName(
const DtString& resName);
124 : fullAmount(0), previousPercent(-1.0)
125 , property(nullptr), entityType(DtEntityType::nullType()) {};
128 : fullAmount(fa), previousPercent(-1.0)
129 , property(prop), valueFieldName(fn), entityType(et) {};
ResourceInfo(const DtPropertyInterface *prop, DtEntityType et, double fa, DtString fn)
Definition: aggregateDatabaseLoggingController.h:126
double previousPercent
Definition: aggregateDatabaseLoggingController.h:132
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
std::map< DtString, unsigned > myPreviousWeapons
Definition: aggregateDatabaseLoggingController.h:100
std::map< DtString, unsigned > myStartWeapons
Definition: aggregateDatabaseLoggingController.h:91
unsigned myPreviousNumberKilled
Definition: aggregateDatabaseLoggingController.h:94
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
DtAggregateDatabaseLoggingControllerDescriptor * myLoggingDescriptor
Definition: aggregateDatabaseLoggingController.h:81
unsigned myStartNumberMissing
Definition: aggregateDatabaseLoggingController.h:87
virtual void preFirstTickInit()
This function can be overridden to initialize a component before it is ticked for the first time...
unsigned myPreviousNumberMissing
Definition: aggregateDatabaseLoggingController.h:97
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
std::map< DtString, unsigned > myStartEquipment
Definition: aggregateDatabaseLoggingController.h:90
virtual const char * type() const override=0
This returns a string from compTypes.h, and identifies the type of component.
Instances of DtAggregateDatabaseLoggingControllerDescriptor are used to specify the parameters for a ...
Definition: aggregateDatabaseLoggingControllerDescriptor.h:21
Definition: readerWriterRegistry.h:39
bool myHasPrimaryEquip
Definition: aggregateDatabaseLoggingController.h:89
std::set< unsigned > myIncompleteEngagements
Definition: aggregateDatabaseLoggingController.h:141
ResourceInfo()
Definition: aggregateDatabaseLoggingController.h:123
Interface class used to define minimal interface for a property. The DtPropertyInterface class provid...
Definition: propertyInterface.h:53
Definition: aggregateDatabaseLoggingController.h:121
unsigned myPreviousNumberWounded
Definition: aggregateDatabaseLoggingController.h:96
unsigned myPreviousPrimaryEquip
Definition: aggregateDatabaseLoggingController.h:98
bool myIsEngaged
Definition: aggregateDatabaseLoggingController.h:104
unsigned myStartNumberKilled
Definition: aggregateDatabaseLoggingController.h:84
unsigned myStartNumberCaptured
Definition: aggregateDatabaseLoggingController.h:85
unsigned myPreviousNumberCaptured
Definition: aggregateDatabaseLoggingController.h:95
unsigned myStartPrimaryEquip
Definition: aggregateDatabaseLoggingController.h:88
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
unsigned myEngagementId
Definition: aggregateDatabaseLoggingController.h:102
virtual bool tickWhileDestroyed() const
If the component returns true here, it will be ticked regardless of the destroyed state of the host e...
std::map< DtEntityType, ResourceInfo > myResourceInfo
Definition: aggregateDatabaseLoggingController.h:137
DtEntityType entityType
Definition: aggregateDatabaseLoggingController.h:135
double myEngagementStartTime
Definition: aggregateDatabaseLoggingController.h:103
DtTime myPreviousUpdateTime
Definition: aggregateDatabaseLoggingController.h:139
This controller is responsible for logging information about AggregateLevel events to a database...
Definition: aggregateDatabaseLoggingController.h:19
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:31
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
unsigned myStartNumberWounded
Definition: aggregateDatabaseLoggingController.h:86
const DtPropertyInterface * property
Definition: aggregateDatabaseLoggingController.h:133
unsigned myStartHealth
Definition: aggregateDatabaseLoggingController.h:83
std::map< DtString, unsigned > myPreviousEquipment
Definition: aggregateDatabaseLoggingController.h:99
DtString valueFieldName
Definition: aggregateDatabaseLoggingController.h:134
unsigned myPreviousHealth
Definition: aggregateDatabaseLoggingController.h:93
A locally simulated VRF object.
Definition: localObject.h:98