instrumentedworkingmemoryimpl.java
来自「drools 一个开放源码的规则引擎」· Java 代码 · 共 44 行
JAVA
44 行
package org.drools.reteoo;
import org.drools.FactHandle;
/*
* InstrumentedWorkingMemoryImpl memory thats extends WorkingMemoryImpl and exposes some
* package protected methods.
*/
public class InstrumentedWorkingMemoryImpl extends WorkingMemoryImpl
{
public InstrumentedWorkingMemoryImpl()
{
this( new RuleBaseImpl( new Rete() ) );
}
public InstrumentedWorkingMemoryImpl(RuleBaseImpl ruleBase)
{
super( ruleBase );
}
/**
* Associate an object with its handle.
*
* @param handle
* The handle.
* @param object
* The object.
*/
public Object putObject(FactHandle handle,
Object object)
{
return super.putObject( handle,
object );
}
/**
* Helper method to return FactHandles with a specific id
*/
public FactHandle createFactHandle(int id)
{
return new FactHandleImpl( id );
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?