VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
resupplyController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 
17 
18 
21 {
22 
23 public:
24 
30  DtResupplyController(const DtString& name, DtVrfObject* owner,
31  DtSimManager* simManager,
32  DtComponentDescriptor* compDesc = 0,
33  DtReaderWriterRegistry* parentRegistry = 0);
34 
36  virtual ~DtResupplyController();
37 
38  virtual const char* type() const;
39 
56  virtual bool postAddComponentsInit();
57 
59  virtual bool init();
60 
64 
66  static DtReaderWriter* provideResupplyRange(void* ctrlr);
67 
70  static DtReaderWriter* provideResupplyMode(void* ctrlr);
71 
74  static DtReaderWriter* provideSuppliesOffered(void* ctrlr);
76 
77  static DtSimComponent* creator(const DtString& name,
78  DtVrfObject* owner,
79  DtSimManager* simManager,
80  DtComponentDescriptor* desc,
81  DtReaderWriterRegistry* parentRegistry);
82 
88  static void setSupplyingCallback(DtSimMessage * msg, void * usr);
89 
93  virtual void processSetSupplying(DtSimMessage * msg);
94 
97  virtual void addSetDataCallbacks();
98 
101  void removeSetDataCallbacks();
102 
103 protected:
105  virtual const DtResupplyControllerDescriptor* getDescriptor();
106 
108 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
virtual bool postAddComponentsInit()
Called after all components have been created, initialized and added to the component manager...
Definition: simComponent.h:144
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
This class ...
Definition: resupplyController.h:20
This class provides a base class for all controllers that are capable of executing a DtSimTask...
Definition: singleTaskControllerComponent.h:20
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 const char * type() const =0
Returns a string identifies the class type of component.
virtual bool init()
Calls setRadio()
File: simMsg.h.
Definition: simMessage.h:35
DtResupplyControllerDescriptor is a DtComponentDescriptor that has additional information needed for ...
Definition: resupplyControllerDescriptor.h:20
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
const DtResupplyControllerDescriptor * myResupplyDesc
Definition: resupplyController.h:107
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102

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)