airule.cpp

来自「一个面向对象的产生式推理模型」· C++ 代码 · 共 54 行

CPP
54
字号
#include "stdafx.h"
#include "AiRule.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

IMPLEMENT_SERIAL(AiRule,CObject,0)
AiRule::AiRule()
{
	m_exist = FALSE;
}
void AiRule::SetWffs(AiWffs wff)
{
	m_wff = wff;
}
void AiRule::SetMt(AiMt mt)
{
	m_mt = mt;
}
AiWffs AiRule::GetWffs()
{
	return m_wff;
}
AiMt AiRule::GetMt()
{
	return m_mt;
}

void AiRule::Serialize(CArchive& ar)
{
}

void AiRule::SetExist(BOOL exist)
{
	m_exist = exist;
}

BOOL AiRule::GetExist()
{
	return m_exist;
}

AiMt AiRule::GetWffsAsMt()
{
	AiMt mt;
	mt.SetId(m_wff.GetId());
	mt.SetPre(m_wff.GetPre());
	mt.SetSign(m_wff.GetSign());
	return mt;
}

⌨️ 快捷键说明

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