propagationcontextimpl.java
来自「drools 一个开放源码的规则引擎」· Java 代码 · 共 49 行
JAVA
49 行
package org.drools.reteoo;
import org.drools.rule.Rule;
import org.drools.spi.Activation;
import org.drools.spi.PropagationContext;
public class PropagationContextImpl implements PropagationContext
{
private int type;
private Rule rule;
private Activation activation;
public PropagationContextImpl( int type,
Rule rule,
Activation activation)
{
this.type = type;
this.rule = rule;
this.activation = activation;
}
/* (non-Javadoc)
* @see org.drools.reteoo.PropagationContext#getRuleOrigin()
*/
public Rule getRuleOrigin()
{
return this.rule;
}
/* (non-Javadoc)
* @see org.drools.reteoo.PropagationContext#getActivationOrigin()
*/
public Activation getActivationOrigin()
{
return activation;
}
/* (non-Javadoc)
* @see org.drools.reteoo.PropagationContext#getType()
*/
public int getType()
{
return this.type;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?