Subversion Repositories public iLand

Rev

Rev 415 | Rev 425 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 415 Rev 420
Line 71... Line 71...
71
    double psiMin() const { return mPsiMin; }
71
    double psiMin() const { return mPsiMin; }
72
72
73
    const Stamp* stamp(const float dbh, const float height) const { return mLIPs.stamp(dbh, height);}
73
    const Stamp* stamp(const float dbh, const float height) const { return mLIPs.stamp(dbh, height);}
74
private:
74
private:
75
    Q_DISABLE_COPY(Species);
75
    Q_DISABLE_COPY(Species);
76
    QMutex mMutex;
-
 
77
    // helpers during setup
76
    // helpers during setup
78
    bool boolVar(const QString s) { return mSet->var(s).toBool(); } ///< during setup: get value of variable @p s as a boolean variable.
77
    bool boolVar(const QString s) { return mSet->var(s).toBool(); } ///< during setup: get value of variable @p s as a boolean variable.
79
    double doubleVar(const QString s) { return mSet->var(s).toDouble(); }///< during setup: get value of variable @p s as a double.
78
    double doubleVar(const QString s) { return mSet->var(s).toDouble(); }///< during setup: get value of variable @p s as a double.
80
    int intVar(const QString s) { return mSet->var(s).toInt(); } ///< during setup: get value of variable @p s as an integer.
79
    int intVar(const QString s) { return mSet->var(s).toInt(); } ///< during setup: get value of variable @p s as an integer.
81
    QString stringVar(const QString s) { return mSet->var(s).toString(); } ///< during setup: get value of variable @p s as a string.
80
    QString stringVar(const QString s) { return mSet->var(s).toString(); } ///< during setup: get value of variable @p s as a string.
Line 130... Line 129...
130
129
131
130
132
// inlined functions...
131
// inlined functions...
133
inline void Species::hdRange(const double dbh, double &rLowHD, double &rHighHD)
132
inline void Species::hdRange(const double dbh, double &rLowHD, double &rHighHD)
134
{
133
{
135
    QMutexLocker m(&mMutex); // serialize access
-
 
136
    rLowHD = mHDlow.calculate(dbh);
134
    rLowHD = mHDlow.calculate(dbh);
137
    rHighHD = mHDhigh.calculate(dbh);
135
    rHighHD = mHDhigh.calculate(dbh);
138
}
136
}
139
/** vpdResponse calculates response on vpd.
137
/** vpdResponse calculates response on vpd.
140
    Input: vpd [kPa]*/
138
    Input: vpd [kPa]*/