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

📄 rsesreducer.cpp

📁 粗慥集成算法集合 ,并有详细的文档资料和测试数据处
💻 CPP
字号:
//-------------------------------------------------------------------
// Author........: Aleksander 豩rn
// Date..........: 960307
// Description...:
// Revisions.....:
//===================================================================

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

#include <kernel/rses/algorithms/rsesreducer.h>

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

//-------------------------------------------------------------------
// Methods for class RSESReducer.
//===================================================================

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

RSESReducer::RSESReducer() {
}

RSESReducer::~RSESReducer() {
}

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

IMPLEMENTIDMETHODS(RSESReducer, RSESREDUCER, Reducer)

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

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

bool
RSESReducer::IsApplicable(const Structure &structure, bool warn) const {

	if (!structure.IsA(RSESDECISIONTABLE))
		return false;

	Handle<RSESDecisionTable> rsestable = dynamic_cast(RSESDecisionTable *, const_cast(Structure *, &structure));

	return !rsestable->HasExceededMaximumDimensions(warn);

}

//-------------------------------------------------------------------
// Methods inherited from Reducer
//===================================================================

//-------------------------------------------------------------------
// Method........: UseIDG
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......: RSES offers no IDG support.
// Revisions.....:
//===================================================================

bool
RSESReducer::UseIDG() const {
	return false;
}

bool
RSESReducer::UseIDG(bool idg) {
	return (idg == UseIDG());
}

//-------------------------------------------------------------------
// Method........: GetIDGFilename/SetIDGFilename
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......: RSES offers no IDG support.
// Revisions.....:
//===================================================================

const String &
RSESReducer::GetIDGFilename() const {
	return Undefined::String();
}

bool
RSESReducer::SetIDGFilename(const String &filename) {
	return (filename == GetIDGFilename());
}

//-------------------------------------------------------------------
// Method........: UseBRT
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......: RSES offers no BRT support.
// Revisions.....:
//===================================================================

bool
RSESReducer::UseBRT() const {
	return false;
}

bool
RSESReducer::UseBRT(bool brt) {
	return (brt == UseBRT());
}

//-------------------------------------------------------------------
// Method........: GetBRTPrecision/SetBRTPrecision
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......: RSES offers no BRT support.
// Revisions.....:
//===================================================================

float
RSESReducer::GetBRTPrecision() const {
	return Undefined::Float();
}

bool
RSESReducer::SetBRTPrecision(float precision) {
	return (precision == GetBRTPrecision());
}

//-------------------------------------------------------------------
// Method........: PrecomputeMatrix
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Comments......: Not relevant for RSES, does not seem to do it
//                 anyway.
// Revisions.....:
//===================================================================

bool
RSESReducer::PrecomputeMatrix() const {
	return false;
}

bool
RSESReducer::PrecomputeMatrix(bool precompute) {
	return (precompute == PrecomputeMatrix());
}

⌨️ 快捷键说明

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