⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 creator.h

📁 粗糙集应用软件
💻 H
字号:
//-------------------------------------------------------------------
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Revisions.....:
//===================================================================

#ifndef __CREATOR_H__
#define __CREATOR_H__

#include <copyright.h>

#include <kernel/basic/types.h>

#include <kernel/system/stdio.h>

//-------------------------------------------------------------------
// Class prototypes.
//===================================================================

class Annotation;
class Approximation;
class Attribute;
class BatchClassification;
class Classification;
class DecisionTable;
class DecisionTables;
class Dictionary;
class EquivalenceClass;
class EquivalenceClasses;
class FloatAttribute;
class GeneralizedDecision;
class Graph;
class InformationVector;
class IntegerAttribute;
class Project;
class Reduct;
class Reducts;
#if defined(_RSES)
	class RSESDecisionTable;
	class RSESReduct;
	class RSESReducts;
	class RSESRule;
	class RSESRules;
#endif
class Rule;
class RuleBasedClassification;
class Rules;
class StringAttribute;
class Structure;
class Structures;

//-------------------------------------------------------------------
// Class.........: Creator
// Author........: Aleksander 豩rn
// Date..........:
// Description...: Kit for dynamic creation of structural objects.
// Comments......: Some specific creation methods can't have default
//                 arguments since this would cause signature
//                 confusion.
// Revisions.....:
//===================================================================

class Creator {
public:

	//- General creation...............................................
	static ::Structure               *Create(Id id, ::Structure *parent = NULL, bool append = false);

	static ::Structure               *Load(const String &filename, ::Structure *parent = NULL, bool append = false);
	static ::Structure               *Load(const String &filename, Id id, ::Structure *parent = NULL, bool append = false);

	//- Specific creation..............................................
  static ::Annotation              *Annotation(::Structure *parent = NULL, bool append = false);
  static ::Approximation           *Approximation(::Structure *parent = NULL, bool append = false);
  static ::Attribute               *Attribute(::Structure *parent = NULL, bool append = false);
  static ::BatchClassification     *BatchClassification(::Structure *parent = NULL, bool append = false);
  static ::Classification          *Classification(::Structure *parent = NULL, bool append = false);
  static ::DecisionTable           *DecisionTable(::Structure *parent = NULL, bool append = false);
  static ::DecisionTables          *DecisionTables(::Structure *parent = NULL, bool append = false);
  static ::Dictionary              *Dictionary(::Structure *parent = NULL, bool append = false);
  static ::EquivalenceClass        *EquivalenceClass(::Structure *parent = NULL, bool append = false);
  static ::EquivalenceClasses      *EquivalenceClasses(::Structure *parent = NULL, bool append = false);
  static ::FloatAttribute          *FloatAttribute(::Structure *parent, bool append);
  static ::FloatAttribute          *FloatAttribute(int exponent, ::Structure *parent, bool append);
  static ::GeneralizedDecision     *GeneralizedDecision(::Structure *parent = NULL, bool append = false);
  static ::Graph                   *Graph(::Structure *parent = NULL, bool append = false);
  static ::InformationVector       *InformationVector(::Structure *parent = NULL, bool append = false);
  static ::IntegerAttribute        *IntegerAttribute(::Structure *parent = NULL, bool append = false);
  static ::Project                 *Project(::Structure *parent = NULL, bool append = false);
  static ::Reduct                  *Reduct(::Structure *parent = NULL, bool append = false);
  static ::Reduct                  *Reduct(const String &description, const ::DecisionTable *table = NULL, bool masked = true);
  static ::Reducts                 *Reducts(::Structure *parent = NULL, bool append = false);
#if defined(_RSES)
  static ::RSESDecisionTable       *RSESDecisionTable(::Structure *parent = NULL, bool append = false);
  static ::RSESReduct              *RSESReduct(::Structure *parent = NULL, bool append = false);
  static ::RSESReducts             *RSESReducts(::Structure *parent = NULL, bool append = false);
  static ::RSESRule                *RSESRule(::Structure *parent = NULL, bool append = false);
  static ::RSESRules               *RSESRules(::Structure *parent = NULL, bool append = false);
#endif
  static ::Rule                    *Rule(::Structure *parent = NULL, bool append = false);
  static ::RuleBasedClassification *RuleBasedClassification(::Structure *parent = NULL, bool append = false);
  static ::Rules                   *Rules(::Structure *parent = NULL, bool append = false);
  static ::StringAttribute         *StringAttribute(::Structure *parent = NULL, bool append = false);
  static ::Structures              *Structures(::Structure *parent = NULL, bool append = false);

};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -