VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
launchExpendableResourcePSR.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: launchExpendableResourcePSR.h,v $ $Revision: 1.1 $ $State: Exp $
7 ** Created: 4/28/11 MEM
8 *******************************************************************************/
9 
10 #pragma once
11 
13 #include <readerWriter/rwInt.h>
14 #include <readerWriter/rwReal.h>
15 #include <readerWriter/rwBoolean.h>
16 
22 
25 {
26 public:
27 
30  const DtString& rwName = DtString::nullString(),
31  DtReaderWriterRegistry* parentRegistry = 0);
32 
35  const DtString& rwName = DtString::nullString(),
36  DtReaderWriterRegistry* parentRegistry = 0);
37 
40 
43 
46  const DtString& rwName = DtString::nullString(),
47  DtReaderWriterRegistry* parentRegistry = 0) const;
48 
50  virtual DtString type() const;
51 
53  virtual void setNumberLeftToFire(const int number);
54  virtual const int numberLeftToFire() const;
55 
57  virtual void reduceNumberLeftToFire(const int reduce);
58 
60  virtual void setElapsedTimeBetweenInterval(const double time);
61  virtual const double elapsedTimeBetweenInterval() const;
62 
65  virtual void setAutoLaunchEnabled(bool enabled);
66  virtual bool autoLaunchEnabled() const;
67  virtual bool autoLaunchEnabledOnSpecified() const;
68 
72  virtual void setAutoLaunchSubtaskId(const int id);
73  virtual const int autoLaunchSubtaskId() const;
74 
75  virtual void setAutoLaunchRange(const double range);
76  virtual const double autoLaunchRange() const;
77 
79  virtual void setElapsedTimeBetweenAutoLaunches(const double time);
80  virtual const double elapsedTimeBetweenAutoLaunches() const;
81 
82 public:
83 
85  static DtVrfProcessStateRepository* creator (const DtString& rwName,
86  DtVrfObject* vrfObject, DtReaderWriterRegistry* parentRegistry);
87 
88 protected:
89 
93 
98 
103 
106 
109 
111 };
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtRwReal myTimeElapsedBetweenAutoLaunches
Time elapsed since last autoLaunch.
Definition: launchExpendableResourcePSR.h:108
Definition: readerWriterRegistry.h:39
DtRwInt myAutoLaunchSubtaskId
Definition: launchExpendableResourcePSR.h:110
DtRwReal myElapsedTimeBetweenInterval
This is the time elapsed since the last time we fired a resource.
Definition: launchExpendableResourcePSR.h:97
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtVrfProcessStateRepository * clone(const DtString &rwName=DtString::nullString(), DtReaderWriterRegistry *parentRegistry=0) const =0
DtRwBoolean myAutoLaunchEnabled
Stores whether the entity is enabled to automatically launch its resources when it reaches auto launc...
Definition: launchExpendableResourcePSR.h:102
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
Class DtVrfProcessStateRepository: Abstract base class for all process state repositories.
Definition: vrfProcessStateRepository.h:43
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
virtual DtString type() const =0
Returns the string type of the repository, as defined in procSRTypes.h.
DtRwReal myAutoLaunchRange
Stores the range within which the entity can automatically launch its resources.
Definition: launchExpendableResourcePSR.h:105
DtRwInt myNumberLeftToFire
This stores how much time has passed since the limit existence controller was created in the simulati...
Definition: launchExpendableResourcePSR.h:92
class DtLaunchExpendableResourcePSR:
Definition: launchExpendableResourcePSR.h:24
const DtVrfProcessStateRepository & operator=(const DtVrfProcessStateRepository &orig)

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)