📄 instrumentedworkingmemoryimpl.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -