Subversion Repositories public iLand

Rev

Rev 811 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#ifndef FOMEWRAPPER_H
#define FOMEWRAPPER_H

#include "expressionwrapper.h"
class Activity;

/** FOMEWrapper provides the context for the Forest Management Engine
 *  This wrapper blends activties, stand variables, and agent variables together.
*/


class FOMEWrapper: public ExpressionWrapper
{
public:
    FOMEWrapper(): mActivity(0)  {}
    FOMEWrapper(const Activity *act): mActivity(act) {}
    virtual const QStringList getVariablesList();
    virtual double value(const int variableIndex);

private:
    void buildVarList();
    double valueActivity(const int variableIndex);
    double valueStand(const int variableIndex);
    Activity *mActivity;
};


#endif // FOMEWRAPPER_H