VR-Forces 5.0.3 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();
49 
50 
53  virtual const char* type() const;
54 
57  virtual bool init();
58 
62  virtual void tick();
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
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.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
Definition: readerWriterRegistry.h:39
virtual const char * type() const =0
Returns a string identifies the class type of component. Type values are defined in compTypes...
virtual bool init()
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:90
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
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. 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 Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)