home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 02 Useful Techniques / 08 Zarozinski / src / ffllapi / DefuzzSetObj.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-16  |  1.4 KB  |  51 lines

  1. //
  2. // File:    DefuzzSetObj.h
  3. //
  4. // Purpose:    This is the base class for the defuzzification sets  
  5. //
  6. // Copyright ⌐ 1999-2001 Louder Than A Bomb! Software
  7. //
  8. // This file is part of the FFLL (Free Fuzzy Logic Library) project (http://ffll.sourceforge.net)
  9. // It is released under the BSD license, see http://ffll.sourceforge.net/license.txt for the full text.
  10. //
  11.  
  12. #if !defined(AFX_DEFUZZSETOBJ_H__B251E1B3_3315_4D8B_9EF5_5C9B6052E4CF__INCLUDED_)
  13. #define AFX_DEFUZZSETOBJ_H__B251E1B3_3315_4D8B_9EF5_5C9B6052E4CF__INCLUDED_
  14.  
  15.  
  16. #include "FFLLBase.h"
  17. class FuzzyOutSet;
  18.  
  19. //
  20. // Class:    DefuzzSetObj
  21. //
  22. // Abstract base class for defuzzifcation set objects.
  23. //
  24.  
  25. class DefuzzSetObj : virtual public FFLLBase  
  26. {
  27.     ////////////////////////////////////////
  28.     ////////// Member Functions ////////////
  29.     ////////////////////////////////////////
  30.  
  31.     public:
  32.         // constructor/destructor funcs
  33.         DefuzzSetObj();// No function body for this. Explicitly disallow auto-creation of it by the compiler
  34.         DefuzzSetObj(FuzzyOutSet* par);
  35.         virtual ~DefuzzSetObj();
  36.  
  37.         // get functions
  38.         FuzzyOutSet* get_parent() const ;
  39.         virtual int get_defuzz_type() const = 0;
  40.  
  41.         // misc functions
  42.          virtual void calc(void) = 0;
  43.  
  44. }; // end class DefuzzSetObj
  45.  
  46. #else
  47.  
  48. class DefuzzSetObj; // already included
  49.  
  50. #endif // !defined(AFX_DEFUZZSETOBJ_H__B251E1B3_3315_4D8B_9EF5_5C9B6052E4CF__INCLUDED_)
  51.