VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aggregateDynamicFeaturesController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 
17 {
18 public:
19  explicit DtAggregateVrfObjectFeature(const DtSimObject* object);
20 
21  virtual boost::optional<double> percentComplete() const;
22  virtual boost::optional<bool> isBreached() const;
23 };
24 
26 {
27 public:
29  const DtString& name,
30  DtLocalObject* owner,
31  DtSimulationServices* simManager,
32  DtComponentDescriptor* desc = 0,
33  DtReaderWriterRegistry* parentRegistry = 0);
34 
35  static DtSimComponent * creator(const DtString& name,
36  DtLocalObject* owner,
37  DtSimulationServices* simManager,
38  DtComponentDescriptor* desc = 0,
39  DtReaderWriterRegistry* parentRegistry = 0);
40 
43  virtual const char* type() const;
44 
45 protected:
46  virtual boost::shared_ptr<DtVrfObjectFeature> createFeature();
47  virtual bool isChanged() const;
48 
51  virtual double creationDelay() const;
52 
53  boost::optional<double> myLastPercentComplete;
54  boost::optional<bool> myLastBreached;
55 
56  mutable double myTimeToCreateFeature;
57 
58 private:
61 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtDynamicFeaturesContoller; creates dynamic features from entities.
Definition: dynamicFeaturesController.h:20
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
DtDynamicFeaturesController & operator=(const DtDynamicFeaturesController &)
Definition: aggregateDynamicFeaturesController.h:25
virtual bool isChanged() const
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
Definition: dynamicFeaturesController.h:47
virtual const char * type() const
This returns a string from compTypes.h, and identifies the type of component.
boost::optional< double > myLastPercentComplete
Definition: aggregateDynamicFeaturesController.h:53
double myTimeToCreateFeature
Definition: aggregateDynamicFeaturesController.h:56
boost::optional< bool > myLastBreached
Definition: aggregateDynamicFeaturesController.h:54
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:95
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:91
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:88
DtAggregateDynamicFeaturesContoller; creates dynamic features from entities.
Definition: aggregateDynamicFeaturesController.h:16
virtual boost::shared_ptr< DtVrfObjectFeature > createFeature()
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)