#ifndef LOOKUPTABLE_HEADERFILE
#define LOOKUPTABLE_HEADERFILE

#include "Module.h"
#include "Range.h"

#define MAX_NUM_OF_RANGES 10

#define INCLUDED true
#define EXCLUDED false

class Lookuptable : public Module {

	private:
		bool lookuptable_is_correct_and_active;
		unsigned int num_of_ranges;

		Range list_of_ranges[MAX_NUM_OF_RANGES];

	public:
		Lookuptable();
		Lookuptable(char* name);

		bool add_range_to_lookuptable(int score, float lower_boundary, bool flag_lower_boundary_included, float upper_boundary, bool flag_upper_boundary_included);
		
		bool check_sort_and_activate();

		bool get_lookuptable_is_correct_and_active();

		int get_score(float input);



		//testing/debugging functions
		void printf_ranges();
};

#endif