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

📄 algorithm.h

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

#ifndef __ALGORITHM_H__
#define __ALGORITHM_H__

#include <copyright.h>

#include <kernel/basic/persistent.h>

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

class Structure;

//-------------------------------------------------------------------
// Class.........: Algorithm
// Author........: Aleksander 豩rn
// Date..........: 960307
// Description...: Base class for algorithm objects.
// Revisions.....:
//===================================================================

class Algorithm : public Persistent {
public:

  //- Type definitions...............................................
	typedef Vector(Handle<Algorithm>) Handles;

public:

  //- Constructors/destructor........................................
  Algorithm();
  virtual ~Algorithm();

  //- Methods inherited from Identifier..............................
	DECLAREIDMETHODS()

  //- Parameter manipulation.........................................
	virtual String     GetParameters() const;
	virtual bool       GetOutputFilenames(Vector(String) &filenames) const;
	virtual bool       SetParameters(const String &parameters, bool warn = true);
	virtual bool       SetParameter(const String &keyword, const String &value);

	//- Algorithm application..........................................
	virtual bool       IsApplicable(const Structure &structure, bool warn = true) const;
  virtual Structure *Apply(Structure &structure) const = 0;

};

#endif

⌨️ 快捷键说明

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