rsesstaticreducer.cpp

来自「ROSETTA C++库是一个C++类库和例程集合」· C++ 代码 · 共 94 行

CPP
94
字号
//-------------------------------------------------------------------
// Author........: Aleksander 豩rn
// Date..........: 960307
// Description...:
// Revisions.....:
//===================================================================

#include <stdafx.h> // Precompiled headers.
#include <copyright.h>

#include <kernel/rses/algorithms/rsesstaticreducer.h>
#include <kernel/rses/algorithms/rsesexhaustivereducer.h>
#include <kernel/rses/algorithms/rsesjohnsonreducer.h>
#include <kernel/rses/algorithms/rsesgeneticreducer.h>

#include <kernel/rses/structures/rsesdecisiontable.h>
#include <kernel/rses/structures/rsesreducts.h>
#include <kernel/rses/structures/rsesreduct.h>

#include <kernel/rses/library/trr_calc.h>
#include <kernel/rses/library/tdtable.h>
#include <kernel/rses/library/trr_mem.h>
#include <kernel/rses/library/err.h>
#include <kernel/rses/library/trow.h>

#include <kernel/algorithms/keyword.h>

#include <kernel/utilities/creator.h>
#include <kernel/utilities/iokit.h>

#include <kernel/basic/message.h>

//-------------------------------------------------------------------
// Methods for class RSESStaticReducer.
//===================================================================

//-------------------------------------------------------------------
// Constructors/destructor.
//===================================================================

//-------------------------------------------------------------------
// Method........: Constructor
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......:
// Revisions.....:
//===================================================================

RSESStaticReducer::RSESStaticReducer() {

	// Instantiate embedded RSES object.
	try {
		algorithm_ = new TRedRulCalc();
	}
	catch (Error &error) {
		Message::RSESError("Error setting RSES algorithm parameters.", error.GetMessage());
		algorithm_ = NULL;
	}

	is_dynamic_ = false;

}

//-------------------------------------------------------------------
// Method........: Destructor
// Author........: Aleksander 豩rn
// Date..........: 960628
// Description...:
// Comments......:
// Revisions.....:
//===================================================================

RSESStaticReducer::~RSESStaticReducer() {
	delete algorithm_;
}

//-------------------------------------------------------------------
// Methods inherited from Identifier.
//===================================================================

IMPLEMENTIDMETHODS(RSESStaticReducer, RSESSTATICREDUCER, RSESReducer)

//-------------------------------------------------------------------
// Methods inherited from Algorithm.
//===================================================================

//-------------------------------------------------------------------
// Method........: GetParameters
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......:
// Revisions.....: A

⌨️ 快捷键说明

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