///////////////////////////////////////////////////////////
// Author:			Stefan Liersch
// Contact:			stefan.liersch@googlemail.com,
//					stefan.liersch@ufz.de
//
// Date:			2008-04-10
// last modified:	2008-04-10
//
//---------------------------------------------------------
// DESCRIPTION
//---------------------------------------------------------
//
//---------------------------------------------------------
// ToDo
//---------------------------------------------------------
//
///////////////////////////////////////////////////////////

#ifndef HEADER_INCLUDED__SOIL_SALINITY_RISK_H
#define HEADER_INCLUDED__SOIL_SALINITY_RISK_H

#include "soil_salinity_assessment.h"

class CRisk : public CSalinity
{
public:
	CRisk();
	CRisk(vector_d& parms, vector_d& weights);
	~CRisk();

	double					Get_Risk() { return(m_risk); }

protected:
	//-----------------------------------------------------------------
	//	m_parameters // defined in CSalintiy

	//	The parameters in the soil salinity risk assessment based
	//	on natural conditions are:
	//	  index | parameter
	//    ---------------------------------------------------
	//		0	| Groundwater level
	//		1	| Groundwater salinity
	//		2	| Soil Texture
	//		3	| Planeness of the field
	//		4	| Morphology of the field
	//		5	| Number of drainage channels surrounding the field
	//		6	| Distance to the next drainage channel
	//		7	| Maintenance status of the drainage network
	//-----------------------------------------------------------------

	double					m_risk;

	double					_Calculate_Risk(vector_d& parms, vector_d& weights);
};


#endif /* HEADER_INCLUDED__SOIL_SALINITY_RISK_H */