HydroCouple  1.0.0
Description of the HydroCouple Component-Based Model Coupling Interface Definitions
HydroCouple::IUnitDimensions Class Referenceabstract

Defines the order of dimension in each FundamentalDimension for a unit. More...

#include <hydrocouple.h>

Inheritance diagram for HydroCouple::IUnitDimensions:
Collaboration diagram for HydroCouple::IUnitDimensions:

Public Member Functions

virtual ~IUnitDimensions ()
 
virtual double getPower (HydroCouple::FundamentalUnitDimension dimension)=0
 Returns the power for the requested dimension. More...
 
- Public Member Functions inherited from HydroCouple::IDescription
virtual ~IDescription ()
 
virtual QString caption () const =0
 Gets caption for the entity. More...
 
virtual void setCaption (const QString &caption)=0
 Sets caption for the entity. More...
 
virtual QString description () const =0
 Gets additional descriptive information for the entity. More...
 
virtual void setDescription (const QString &description)=0
 Gets additional descriptive information for the entity. More...
 
- Public Member Functions inherited from HydroCouple::IPropertyChanged
virtual ~IPropertyChanged ()
 

Additional Inherited Members

- Signals inherited from HydroCouple::IPropertyChanged
virtual void propertyChanged (const QString &propertyName)=0
 IPropertyChanged::propertyChanged() is called to emit signal/event when property of child class changes. More...
 

Detailed Description

Defines the order of dimension in each FundamentalDimension for a unit.

Constructor & Destructor Documentation

virtual HydroCouple::IUnitDimensions::~IUnitDimensions ( )
inlinevirtual

Member Function Documentation

virtual double HydroCouple::IUnitDimensions::getPower ( HydroCouple::FundamentalUnitDimension  dimension)
pure virtual

Returns the power for the requested dimension.

Parameters
dimensionrepresents the fundamental unit.

For a quantity such as flow, which may have the unit m3/s, The getPower method must work as follows:

  • getPower( FundamentalUnitDimension::AmountOfSubstance )
    Returns
    0
  • getPower( FundamentalUnitDimension::Currency )
    Returns
    0
  • getPower( FundamentalUnitDimension::ElectricCurrent )
    Returns
    0
  • getPower( FundamentalUnitDimension::Length )
    Returns
    3
  • getPower( FundamentalUnitDimension::LuminousIntensity )
    Returns
    0
  • getPower( FundamentalUnitDimension::Mass )
    Returns
    0
  • getPower( FundamentalUnitDimension::Temperature )
    Returns
    0
  • getPower( FundamentalUnitDimension::Time )
    Returns
    -1

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