VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
exampleEmbeddedSystemController.h
Go to the documentation of this file.
1 //********************************************************************
2 // Copyright (c) 2025 MAK Technologies, Inc
3 // All rights reserved.
4 //********************************************************************
5 
6 #pragma once
7 
9 
11 const char DtExampleEmbeddedSystemControllerType[] = "example-embedded-system-controller";
12 
14 
18 {
19 public:
20 
28  DtSimulationServices* simServices, DtComponentDescriptor* desc = 0,
29  DtReaderWriterRegistry* parentRegistry = 0);
30 
33 
37  virtual bool init() override;
38 
41  virtual const char* type() const override;
42 
45  virtual void tick() override;
46 
54  static DtSimComponent* creator(const DtString& name, DtLocalObject* owner,
56  DtReaderWriterRegistry* parentRegistry = 0);
57 
58 private:
61 
64 
67 
68 protected:
71 };
const char DtExampleEmbeddedSystemControllerType[]
Type identifier string for the example embedded system controller component.
Definition: exampleEmbeddedSystemController.h:11
virtual bool init() override
Initializes the controller component. Calls base class initialization and adds embedded system state ...
Controller that updates embedded system state each simulation tick. Reads configuration from descript...
Definition: exampleEmbeddedSystemController.h:17
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
Factory creator method for instantiating this controller.
Definition: readerWriterRegistry.h:39
virtual ~DtExampleEmbeddedSystemController()
Virtual destructor for proper cleanup.
virtual const char * type() const override
Returns the type identifier for this component.
const DtExampleEmbeddedSystemController & operator=(const DtExampleEmbeddedSystemController &orig)
Assignment operator; not implemented.
DtExampleEmbeddedSystemController()
Default constructor; not implemented.
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:97
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
VRF4API_METHOD const DtSimulationServices * simManager() const
This is the deprecated API that can be used as a reference to migrate 4.X code to 5...
Definition: simComponent.h:659
virtual void tick() override
Per-frame processing method. Updates embedded system state with values from descriptor.
Descriptor for specifying parameters for DtExampleEmbeddedSystemController objects. Contains configuration settings including model number and system identifier.
Definition: exampleEmbeddedSystemDescriptor.h:16
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.
DtExampleEmbeddedSystemDescriptor * myEmbeddedSystemDescriptor
Descriptor containing configuration data for this controller.
Definition: exampleEmbeddedSystemController.h:70
A locally simulated VRF object.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)