VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
parallelTickActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #ifndef MyParallelTickComponent_H_
7 #define MyParallelTickComponent_H_
8 
10 
12 {
13 public:
14 
15  // "my-parallel-tick-component" - tag used in SMS.
16  static const char* Tag;
17 
18  //constructor
20  const DtString& name, DtVrfObject* object,
22  DtReaderWriterRegistry* parentRegistry = 0);
23 
24  //Returns a string from compTypes.h, identifying the type of component
25  virtual const char* type() const;
26 
27  //tick function
28  virtual void tick();
29 
30 public:
31 
32  //Creator function to be registered with the DtSimComponentFactory --
33  //see main.cxx
34  static DtSimComponent* creator(
35  const DtString& name, DtVrfObject* object,
37  DtReaderWriterRegistry* parentRegistry);
38 };
39 
40 #endif
41 
42 
MyParallelTickComponent(const DtString &name, DtVrfObject *object, DtSimManager *simManager, DtComponentDescriptor *compDescriptor, DtReaderWriterRegistry *parentRegistry=0)
virtual const char * type() const
Returns a string identifies the class type of component. Type values are defined in compTypes...
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
static DtSimComponent * creator(const DtString &name, DtVrfObject *object, DtSimManager *simManager, DtComponentDescriptor *compDescriptor, DtReaderWriterRegistry *parentRegistry)
Definition: parallelTickActuator.h:11
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:583
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
Contains the DtSimComponent class declaration.
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:137
static const char * Tag
Definition: parallelTickActuator.h:16
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.
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)