8 #include <vlutil/vlMachineTypes.h>
68 virtual void setAmount(DtReal amount);
69 virtual DtReal amount()
const;
72 virtual void deplete(DtReal amount);
76 virtual void replenish(DtReal amount);
78 virtual void setFullAmount(DtReal fullAmount);
79 virtual DtReal fullAmount()
const;
87 virtual DtReal constrainAmount(DtReal amount)
const;
virtual void setPercentageFull(DtReal percent)=0
Percent will be truncated to be between 0. and 1.
DtRwReal myFullAmount
Definition: realResource.h:101
virtual DtReal percentageFull() const =0
The deriving class will also provide a function to specify the quantity (of the appropriate type) tha...
virtual DtString type() const =0
The data type of the resource. These types are defined in rsrcTypes.h.
virtual void merge(const DtSimResource *)
DtRealResource implements the required functions for a resource that can be measured by a real...
Definition: realResource.h:19
Definition: readerWriterRegistry.h:39
virtual void updateFullAmountFromChildren()=0
When the deriving class's setFullAmount is called, this should be called on the resources parent...
DtSimResource & operator=(const DtSimResource &orig)
assignment operator
virtual void distributeFullAmountToChildren()=0
When the deriving class's setFullAmount is called, this should be called if the resource has any chil...
virtual void distributeAmountToChildren()=0
When the deriving class's setAmount is called, this should be called if the resource has any children...
virtual bool isEqual(const DtSimResource &res) const
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
virtual DtSimResource * clone(DtReaderWriterRegistry *parentRegistry=0) const =0
DtSimResource is an abstract base class that can be used to create a hierarchical resource list of a ...
Definition: simResource.h:41
DtRwReal myAmount
Definition: realResource.h:100
virtual void updateAmountFromChildren()=0
When the deriving class's setAmount is called, this should be called on the resources parent...
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34