VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions
DtPowerRangeCoefficientsDeterminant Class Reference

A readable/writable object that indicates the power of a detonation of a given type as a function of range, calculated using a standard polynomial with the configured coefficients.

Inheritance diagram for DtPowerRangeCoefficientsDeterminant:
Inheritance graph
[legend]

Public Member Functions

 DtPowerRangeCoefficientsDeterminant ()
 
const
DtPowerRangeCoefficientsDeterminant
operator= (const DtPowerRangeCoefficientsDeterminant &orig)
 
virtual bool operator== (const DtPowerRangeDeterminant &rhs) const
 
virtual ~DtPowerRangeCoefficientsDeterminant ()
 
virtual
DtPowerRangeCoefficientsDeterminant
clone (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL) const
 
virtual
DtPowerRangeCoefficientsDeterminant
clone (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL) const
 
virtual double detonationPower (double rangeFromShooter, double rangeFromImpact) const
 
virtual double rangeFromShooterForPower (double power) const
 
virtual double rangeFromImpactForPower (double power) const
 
virtual double maximumRangeFromShooter () const
 
virtual double maximumRangeFromImpact () const
 
virtual double solveForMaximum () const
 
 DtPowerRangeCoefficientsDeterminant (const DtString &surface, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtPowerRangeCoefficientsDeterminant (const DtSymbolString &surface, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtPowerRangeCoefficientsDeterminant (const DtString &name, const DtPowerRangeCoefficientsDeterminant &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtPowerRangeCoefficientsDeterminant (const DtSymbolString &name, const DtPowerRangeCoefficientsDeterminant &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 
virtual DtPowerCoefficientscoefficients ()
 
virtual const DtPowerCoefficientscoefficients () const
 
virtual void setCoefficients (const DtPowerCoefficients &)
 
- Public Member Functions inherited from DtPowerRangeDeterminant
 DtPowerRangeDeterminant ()
 
const DtPowerRangeDeterminantoperator= (const DtPowerRangeDeterminant &orig)
 
bool operator!= (const DtPowerRangeDeterminant &rhs) const
 
virtual ~DtPowerRangeDeterminant ()
 
virtual void postGetSelf ()
 
virtual const DtStringrangeFrom () const
 
virtual void setRangeFrom (const DtString &)
 
virtual DtString powerType () const
 
 DtPowerRangeDeterminant (const DtString &surface, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtPowerRangeDeterminant (const DtSymbolString &surface, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtPowerRangeDeterminant (const DtString &name, const DtPowerRangeDeterminant &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtPowerRangeDeterminant (const DtSymbolString &name, const DtPowerRangeDeterminant &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 
- Public Member Functions inherited from DtReaderWriter
 DtReaderWriter ()
 
 DtReaderWriter (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false)
 
 DtReaderWriter (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL, bool readonly=false)
 
 DtReaderWriter (const DtString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtReaderWriter (const DtSymbolString &name, const DtReaderWriter &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 
 DtReaderWriter (const DtReaderWriter &, DtReaderWriterRegistry *parentRegistry=NULL)
 
const DtReaderWriteroperator= (const DtReaderWriter &orig)
 
bool operator== (const DtReaderWriter &) const
 
bool operator!= (const DtReaderWriter &rhs)
 
virtual ~DtReaderWriter ()
 
virtual void putSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
 
virtual void postPutSelf ()
 
virtual void prePutSelf ()
 
virtual void getSelf (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
 
virtual void preGetSelf ()
 
virtual void writeSelf (std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
 
virtual DtSymbolString name () const
 
virtual void addAlias (const DtSymbolString &alias)
 
virtual void addAlias (const DtString &alias)
 
virtual bool hasAlias (const DtSymbolString &alias)
 
virtual const aliasContaineraliases () const
 
virtual void setReadonly (bool flag)
 
bool isReadonly () const
 
virtual void reset ()
 
virtual int alignment () const
 
virtual bool variableIsBound () const
 
virtual void unbindVariable ()
 
virtual void setName (const DtString &)
 
virtual const charreaderWriterType () const
 
virtual const charxmlType () const
 
virtual DtString prettyPrint () const
 
std::string debugText () const
 
virtual void bindVariables (DtVariableBindingsList variableBindings)
 
virtual std::list
< DtVariableNameType
unboundVariables () const
 
bool invalid () const
 
virtual bool hasChild (const DtReaderWriter *p) const
 
virtual bool hasVariableReference () const
 
virtual void bindLocalVariables (const DtVariableBindingsList &variableBindings)
 
virtual void recordUpdateTime () const
 
virtual bool changedSinceLastChecked ()
 
virtual bool peekChangedSinceLastChecked () const
 
virtual void putData (std::string &fp, int indentLevel=0)
 
virtual DtlObjPtr getData (DtlObjPtr args, const SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
 
virtual void setValueSpecified (bool specified, bool recurse=false)
 
virtual bool valueSpecified () const
 
virtual bool isVariableReference () const
 
virtual void setIsVariableReference (bool value)
 
virtual void clearAllVariableReferenceFlags ()
 
virtual DtSymbolString variableName () const
 
virtual void setVariableName (const DtSymbolString variableName)
 
virtual const DtReaderWriterdefaultRWValue () const
 
virtual DtReaderWriterdefaultRWValue ()
 
virtual void setDefaultRWValue (DtReaderWriter *)
 
virtual bool checkAndSetDefaultRWValue (DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
 
const DtReaderWriterRegistryregistry () const
 
DtReaderWriterRegistryregistry ()
 
virtual DtPropertyInterfaceproperty ()
 
virtual const DtPropertyInterfaceproperty () const
 
virtual DtString toXml () const
 
virtual DtRwVariableBindingsgenerateVariableBindings () const
 
virtual bool toXml (const DtFilename &) const
 
virtual bool fromXml (const DtString &)
 
virtual bool fromXmlFile (const DtFilename &)
 
virtual void putSelf (DtEnvironmentSP, DtEnvValueSP parent) const
 
virtual void putData (DtEnvironmentSP, DtEnvValueSP value) const
 
virtual void putVariableReference (DtEnvironmentSP, DtEnvValueSP value) const
 
virtual void getSelf (const DtEnvironmentSP, const DtEnvValueSP root, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList())
 
virtual void getData (const DtEnvironmentSP, const DtEnvValueSP, const SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &bindings=DtVariableBindingsList())
 
virtual void unrecognizedItem (const DtEnvironmentSP env, const DtEnvValueSP root, const SearchPaths &searchPaths, const DtVariableBindingsList &varBindings)
 
virtual void getVariableReference (DtEnvironmentSP, DtEnvValueSP value)
 

Static Public Member Functions

static DtPowerRangeDeterminantcreator ()
 
- Static Public Member Functions inherited from DtReaderWriter
static void putIndent (std::string &fp, int indentLevel)
 
static const
DtVariableBindingsList
nullVariableReference ()
 
static void setPostGetSelfCallback (DtGetSelfCallbackFcn fcn, void *usrData)
 
static void setPrePutSelfCallback (DtPutSelfCallbackFcn fcn, void *usrData)
 
static void setPutIndent (bool)
 
static bool putIndent ()
 
static const chartheXmlType ()
 
static const DtFilename & appPath ()
 
static void setFactoryCreatorFunction (DtReaderWriterFactoryCreatorFcn fcn)
 
static void createReaderWriterFactory ()
 
static void cleanupFactory ()
 
static DtReaderWriterFactoryfactory ()
 
static void setOutputStream (DtOutputStream *stream)
 
static DtOutputStream & outputStream ()
 
static DtReaderWritercreateFromXmlFile (const DtFilename &, bool createAsProperty=false)
 
static DtReaderWritercreateFromXml (const DtString &, bool createAsProperty=false)
 
static DtReaderWritercreateFromEnvironment (DtEnvironmentSP, bool createAsProperty=false)
 
static DtString getAttribute (DtEnvironmentSP env, const DtString &name, DtEnvValueSP root)
 

Protected Member Functions

virtual double rangeFromPower (double power) const
 
virtual void validateRangeFrom ()
 
- Protected Member Functions inherited from DtReaderWriter
virtual void bindToRwAsVariable (const DtReaderWriter *rw)
 

Protected Attributes

parameters
DtPowerCoefficients myCoefficients
 
- Protected Attributes inherited from DtPowerRangeDeterminant
DtRwString myRangeFrom
 
- Protected Attributes inherited from DtReaderWriter
const DtSymbolString myName
 
DtReaderWriterRegistry myRegistry
 
DtReaderWriterRegistrymyParentRegistry
 
bool myValueSpecified
 
bool myReadOnlyFlag
 
bool myIsVariableReference
 
DtSymbolString myVariableName
 
bool myVariableIsBound
 
DtReaderWritermyDefaultValue
 
aliasContainer myAliases
 
bool myInvalid
 
bool myChangedFlag
 

Additional Inherited Members

- Public Types inherited from DtReaderWriter
typedef std::vector
< DtSymbolString
aliasContainer
 
typedef std::vector
< DtSymbolString >::iterator 
aliasIter
 
typedef std::vector
< DtSymbolString >
::const_iterator 
aliasConstIter
 
typedef std::vector< DtFilename > SearchPaths
 
typedef std::pair
< DtSymbolString, DtString
DtVariableNameType
 
typedef DtReaderWriterFactory *(* DtReaderWriterFactoryCreatorFcn )()
 
- Static Public Attributes inherited from DtPowerRangeDeterminant
static const DtString DtRangeFromShooterToImpact
 
static const DtString DtRangeFromImpactPoint
 
static const DtString DtRangeUnused
 
static const DtString DtRangeFromShooterAndImpact
 
- Static Protected Attributes inherited from DtReaderWriter
static DtString theUnspecifiedValue
 
static DtGetSelfCallbackInfo thePostGetSelfCallback
 
static DtPutSelfCallbackInfo thePrePutSelfCallback
 
static const DtVariableBindingsList theEmptyVariableBindingsList
 
static bool theCreatorFcnSet
 
static DtReaderWriterFactorytheFactory
 
static
DtReaderWriterFactoryCreatorFcn 
theFactoryCreatorFcn
 
static bool thePutIndent
 
static DtOutputStream * theOutputStream
 

Constructor & Destructor Documentation

DtPowerRangeCoefficientsDeterminant::DtPowerRangeCoefficientsDeterminant ( )

Default constructor.

DtPowerRangeCoefficientsDeterminant::DtPowerRangeCoefficientsDeterminant ( const DtString surface,
DtReaderWriterRegistry parentRegistry = NULL 
)

Constructor with parameters to set up read/writability correctly.

DtPowerRangeCoefficientsDeterminant::DtPowerRangeCoefficientsDeterminant ( const DtSymbolString surface,
DtReaderWriterRegistry parentRegistry = NULL 
)

Constructor with parameters to set up read/writability correctly.

DtPowerRangeCoefficientsDeterminant::DtPowerRangeCoefficientsDeterminant ( const DtString name,
const DtPowerRangeCoefficientsDeterminant orig,
DtReaderWriterRegistry parentRegistry = NULL 
)

Copy constructor.

DtPowerRangeCoefficientsDeterminant::DtPowerRangeCoefficientsDeterminant ( const DtSymbolString name,
const DtPowerRangeCoefficientsDeterminant orig,
DtReaderWriterRegistry parentRegistry = NULL 
)

Copy constructor.

virtual DtPowerRangeCoefficientsDeterminant::~DtPowerRangeCoefficientsDeterminant ( )
virtual

Destructor.

Member Function Documentation

const DtPowerRangeCoefficientsDeterminant& DtPowerRangeCoefficientsDeterminant::operator= ( const DtPowerRangeCoefficientsDeterminant orig)
virtual bool DtPowerRangeCoefficientsDeterminant::operator== ( const DtPowerRangeDeterminant rhs) const
virtual

Reimplemented from DtPowerRangeDeterminant.

virtual DtPowerRangeCoefficientsDeterminant* DtPowerRangeCoefficientsDeterminant::clone ( const DtString name,
DtReaderWriterRegistry parentRegistry = NULL 
) const
virtual
virtual DtPowerRangeCoefficientsDeterminant* DtPowerRangeCoefficientsDeterminant::clone ( const DtSymbolString name,
DtReaderWriterRegistry parentRegistry = NULL 
) const
virtual
virtual double DtPowerRangeCoefficientsDeterminant::detonationPower ( double  rangeFromShooter,
double  rangeFromImpact 
) const
virtual

Gets the detonation's power the given range from the shooter and range from the point of impact.

Implements DtPowerRangeDeterminant.

virtual double DtPowerRangeCoefficientsDeterminant::rangeFromShooterForPower ( double  power) const
virtual

Gets the maximum range from the shooter where the impact point would experience the specified power.

Implements DtPowerRangeDeterminant.

virtual double DtPowerRangeCoefficientsDeterminant::rangeFromImpactForPower ( double  power) const
virtual

Gets the maximum range from the impact point where one would experience the specified power.

Implements DtPowerRangeDeterminant.

virtual double DtPowerRangeCoefficientsDeterminant::maximumRangeFromShooter ( ) const
virtual

Gets the maximum effective range from shooter of this detonation.

Implements DtPowerRangeDeterminant.

virtual double DtPowerRangeCoefficientsDeterminant::maximumRangeFromImpact ( ) const
virtual

Gets the maximum effective range from impact of this detonation.

Implements DtPowerRangeDeterminant.

static DtPowerRangeDeterminant* DtPowerRangeCoefficientsDeterminant::creator ( )
inlinestatic

Creator function.

virtual double DtPowerRangeCoefficientsDeterminant::solveForMaximum ( ) const
virtual

Returns the maximum range available for this coefficient.

virtual DtPowerCoefficients& DtPowerRangeCoefficientsDeterminant::coefficients ( )
virtual

Accessor/mutator for myCoefficients.

virtual const DtPowerCoefficients& DtPowerRangeCoefficientsDeterminant::coefficients ( ) const
virtual

Accessor/mutator for myCoefficients.

virtual void DtPowerRangeCoefficientsDeterminant::setCoefficients ( const DtPowerCoefficients )
virtual

Accessor/mutator for myCoefficients.

virtual double DtPowerRangeCoefficientsDeterminant::rangeFromPower ( double  power) const
protectedvirtual

Looks up a power value based on an input range.

virtual void DtPowerRangeCoefficientsDeterminant::validateRangeFrom ( )
protectedvirtual

Validates the configured range-from setting and restores to a valid default if configuration is unsupported. This determinant expects a value of "shooter-to-impact" or "impact-point".

Implements DtPowerRangeDeterminant.

Member Data Documentation

DtPowerCoefficients DtPowerRangeCoefficientsDeterminant::myCoefficients
protected

Parameter Name: range-coefficients
Parameter Description: Defines the coefficients of a standard polynomial that can be used with a given range to determine the detonation's power at that distance from the point of impact. The order of the polynomial is determined by the number of coefficients provided. For example, an entry of: (range-coefficients -5.00000E-008 -300000E-012 24.0000) indicates that the formula to use for a given range r would be: (- 5.00000E-008 * r2) + (-300000E-012 * r) + 24.0
.


The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)