VR-Forces 4.8 Class Documentation
 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 
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
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.
DtSimManager * simManager()
Gets the sim manager.
Definition: simComponent.h:408
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
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:67
virtual void tick()
This gives the thread of control to the component.
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
static const char * Tag
Definition: parallelTickActuator.h:16
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)