VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
limitExistenceController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
12 
13 #pragma once
14 
16 #include "vrfutil/simClock.h"
17 
21 
35 {
36 
37 public:
38 
42  DtLocalObject* owner,
43  DtSimulationServices* simManager,
44  DtComponentDescriptor* desc = 0,
45  DtReaderWriterRegistry* parentRegistry = 0);
46 
48  virtual ~DtLimitExistenceController() override;
49 
50 
53  virtual const char* type() const override;
54 
57  virtual bool init() override;
58 
62  virtual void tick() override;
63 
66  virtual void setElapsedTimeSinceCreation(DtTime elapsedTime);
67  virtual DtTime elapsedTimeSinceCreation() const;
68 
71  virtual void removeEntity();
72 
76  static DtSimComponent * creator(const DtString& name,
77  DtLocalObject* owner,
78  DtSimulationServices* simManager,
79  DtComponentDescriptor* desc = 0,
80  DtReaderWriterRegistry* parentRegistry = 0);
81 
82 protected:
83 
86  virtual bool createPSR();
87 
88 protected:
91 
94 
97  orig);
98 
99 protected:
100 
104 
108 };
109 
110 
111 
112 
113 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
End User Description: The first time the controller is ticked will record the simulation time...
Definition: limitExistenceController.h:34
virtual const char * type() const override=0
Returns a string identifies the class type of component. Type values are defined in compTypes...
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:22
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
virtual bool init() override
Calls setRadio()
File: vlClock.h.
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
DtLimitExistenceControllerDescriptor; descriptor for the DtLimitExistenceController component...
Definition: limitExistenceControllerDescriptor.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
const DtTaskControllerComponent & operator=(const DtTaskControllerComponent &orig)
assignment operator
const DtLimitExistenceControllerDescriptor * myLimitExistenceDescriptor
Descriptor for this component. Allows user to specify how long the entity should exist for...
Definition: limitExistenceController.h:107
class DtLimitExistencePSR:
Definition: limitExistencePSR.h:18
DtLimitExistencePSR * myProcessState
Pointer to a process state repository used to store state data associated with this component...
Definition: limitExistenceController.h:103
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)