// TAdaptControlSystem.h: interface for the TAdaptControlSystem class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TADAPTCONTROLSYSTEM_H__4E844BF5_7183_11D6_861B_0000E87713C4__INCLUDED_)
#define AFX_TADAPTNEUROCONTROLSYSTEM_H__4E844BF5_7183_11D6_861B_0000E87713C4__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "LearnDlg.h"

#include "TNeuroControlSystem.h"

#include "TObject.h"
#include "TControlSystem.h"
#include "TSensors.h"
#include "TSolver.h"
#include "TTeacher.h"
#include "TEffCriteriaCounter.h"
#include "TActuators.h"

#include "TPattern.h"

class TAdaptControlSystem : public TNeuroControlSystem  
{
public:
   TAdaptControlSystem();
   virtual ~TAdaptControlSystem();

// интерфейс управления - реализуем абстрактную функцию

   virtual void messageHandler( TControlSystemMessages, void* );

private:
   TTeacher teacher;

   TTeacherLearnPattern teacherPat;

   int whereKE;
   int whereKSUearly;
   int oldECWhereChanged;
   
   int whereKSUnow;
};

extern TAdaptControlSystem adaptControlSystem;

#endif // !defined(AFX_TADAPTCONTROLSYSTEM_H__4E844BF5_7183_11D6_861B_0000E87713C4__INCLUDED_)
