/*
    Copyright (C) 2012 Bartosz Broda, Jacek Bochenek, Łukasz Biłeńkij, 
    Damian Jaworski, Wojciech Mazur, Dominik Piasecki, Maciej Piasecki, 
    Radosław Ramocki
    
    This program is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your option)
any later version.

    This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. 

    See the LICENSE and COPYING files for more details.
*/

#ifndef COMBINEDCOMPAREFUNCTION_H
#define COMBINEDCOMPAREFUNCTION_H
#include "CompareFunction.h"
//#include "Comparator.h"

namespace smartcomparator
{

	namespace compare
	{

		class CombinedCompareFunction  : public CompareFunction
		{
			public:
				CombinedCompareFunction(std::vector<Matrices::SuperMatrixPtr> matrices, 
						std::vector<CompareFunctionPtr> cmp_functions);
				virtual ~CombinedCompareFunction();

				virtual double Compare(size_t n1, size_t n2);
			protected:
				virtual void SelectCoefficients(size_t n1, size_t n2) = 0;
				std::vector<double> m_vCooefficients;
				std::vector<Matrices::SuperMatrixPtr> m_vMatrices;
				std::vector<CompareFunctionPtr> m_vCmpFunctions;
		};

	}

}

#endif /*COMBINEDCOMPAREFUNCTION_H*/
