conway.dsl.drl
来自「drools 一个开放源码的规则引擎」· DRL 代码 · 共 42 行
DRL
42 行
<?xml version="1.0"?>
<rule-set name="conway"
xmlns="http://drools.org/rules"
xmlns:conway="http://drools.org/semantics/conway"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:schemaLocation="http://drools.org/rules rules.xsd
http://drools.org/semantics/conway conway.xsd">
<rule name="Kill The Overcrowded">
<conway:condition cellName="cell">
<conway:cellIsAlive/>
<conway:cellIsOverCrowded/>
</conway:condition>
<conway:actions cellName="cell">
<conway:killCell/>
</conway:actions>
</rule>
<rule name="Kill The Lonely">
<conway:condition cellName="cell">
<conway:cellIsAlive/>
<conway:cellIsLonely/>
</conway:condition>
<conway:actions cellName="cell">
<conway:killCell/>
</conway:actions>
</rule>
<rule name="Give Birth">
<conway:condition cellName="cell">
<conway:cellIsDead/>
<conway:cellIsRipeForBirth/>
</conway:condition>
<conway:actions cellName="cell">
<conway:giveBirthToCell/>
</conway:actions>
</rule>
</rule-set>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?