VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
controllerComponent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
16 #include <vlutil/vlString.h>
17 
18 class DtSimManager;
19 class DtSimRadio;
20 class DtSimTask;
21 
30 {
31 public:
32 
38  DtControllerComponent(const DtString& name,
39  DtVrfObject* owner,
40  DtSimManager* simManager,
41  DtComponentDescriptor* desc = 0,
42  DtReaderWriterRegistry* parentRegistry = 0);
43 
45  virtual ~DtControllerComponent();
46 
49  virtual const char* type() const = 0;
50 
52  virtual bool init();
53 
55  virtual DtSimRadio* radio();
56 
60  virtual void taskNotify(const DtSimTask & task);
61 
64  virtual void clearTask();
65 
66 protected:
69 
72 
75 
76 protected:
79  virtual void onRestore();
80 
81  virtual void initializeTargetingControlTableFromDescriptor(const DtReaderWriter*);
82 
83 protected:
84  virtual void setRadio(DtSimRadio * radio);
85 
89 };
90 
91 
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtSimRadio * myRadio
Controller components can send messages.
Definition: controllerComponent.h:88
class DtSimRadio:
Definition: simRadio.h:25
Definition: readerWriter.h:85
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
virtual bool init()
Calls createPorts and createPortGroups Initializes myLastTickSimTime.
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
DtSimComponent & operator=(const DtSimComponent &orig)
assignment operator, not implemented
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:29
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
DtSimTask is an abstract base class from which real tasks can derive.
Definition: simTask.h:31
virtual void onRestore()
Called whenever a component is restored. Default is no-op.
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
virtual const char * type() const =0
Returns a string identifies the class type of component.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)