VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
myActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 
11 {
12 public:
13 
14  //constructor
16  DtSimulationServices* simServices, DtComponentDescriptor* compDescriptor,
17  DtReaderWriterRegistry* parentRegistry = 0);
18 
19  //destructor
20  virtual ~MyActuatorComponent() override;
21 
22  //Perform any initialization required by the actuator
23  virtual bool init() override;
24 
25  //Returns a string from compTypes.h, identifying the type of component
26  virtual const char* type() const override;
27 
28  //Calculate new kinematic state, and copy it to state repository
29  virtual void tick() override;
30 
31 public:
32 
33  //Creator function to be registered with the DtSimComponentFactory --
34  //see main.cxx
35  static DtSimComponent* creator(const DtString& name, DtLocalObject* object,
36  DtSimulationServices* simServices, DtComponentDescriptor* compDescriptor,
37  DtReaderWriterRegistry* parentRegistry);
38 
39 };
virtual void tick() override
Calculate new kinematic state.
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 *object, DtSimulationServices *simServices, DtComponentDescriptor *compDescriptor, DtReaderWriterRegistry *parentRegistry)
Definition: readerWriterRegistry.h:39
virtual bool init() override
Calls createPSR() to create our process state repository.
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
Definition: myActuator.h:10
DtAutomotiveActuatorComponent provides a kinematics-based model of an automotive system.
Definition: automotiveActuatorComponent.h:48
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.
MyActuatorComponent(const DtString &name, DtLocalObject *object, DtSimulationServices *simServices, DtComponentDescriptor *compDescriptor, DtReaderWriterRegistry *parentRegistry=0)
virtual ~MyActuatorComponent() override
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
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)