public abstract class AbstractFactHandleFactory extends Object implements FactHandleFactory
Constructor and Description |
---|
AbstractFactHandleFactory() |
AbstractFactHandleFactory(int id,
long counter) |
Modifier and Type | Method and Description |
---|---|
void |
clear(int id,
long counter) |
void |
destroyFactHandle(InternalFactHandle factHandle) |
int |
getId() |
int |
getNextId() |
long |
getNextRecency() |
long |
getRecency() |
void |
increaseFactHandleRecency(InternalFactHandle factHandle)
Increases the recency of the FactHandle
|
abstract InternalFactHandle |
newFactHandle(int id,
Object object,
long recency,
ObjectTypeConf conf,
InternalWorkingMemory workingMemory,
WorkingMemoryEntryPoint wmEntryPoint) |
InternalFactHandle |
newFactHandle(int id,
Object object,
ObjectTypeConf conf,
InternalWorkingMemory workingMemory,
WorkingMemoryEntryPoint wmEntryPoint) |
InternalFactHandle |
newFactHandle(Object object,
ObjectTypeConf conf,
InternalWorkingMemory workingMemory,
WorkingMemoryEntryPoint wmEntryPoint)
Construct a handle with a new id.
|
abstract FactHandleFactory |
newInstance() |
void |
reset() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFactHandleType, newInstance
public AbstractFactHandleFactory()
public AbstractFactHandleFactory(int id, long counter)
public final InternalFactHandle newFactHandle(Object object, ObjectTypeConf conf, InternalWorkingMemory workingMemory, WorkingMemoryEntryPoint wmEntryPoint)
FactHandleFactory
newFactHandle
in interface FactHandleFactory
public final InternalFactHandle newFactHandle(int id, Object object, ObjectTypeConf conf, InternalWorkingMemory workingMemory, WorkingMemoryEntryPoint wmEntryPoint)
public abstract InternalFactHandle newFactHandle(int id, Object object, long recency, ObjectTypeConf conf, InternalWorkingMemory workingMemory, WorkingMemoryEntryPoint wmEntryPoint)
newFactHandle
in interface FactHandleFactory
public final void increaseFactHandleRecency(InternalFactHandle factHandle)
FactHandleFactory
increaseFactHandleRecency
in interface FactHandleFactory
factHandle
- The fact handle to have its recency increased.public void destroyFactHandle(InternalFactHandle factHandle)
destroyFactHandle
in interface FactHandleFactory
public abstract FactHandleFactory newInstance()
newInstance
in interface FactHandleFactory
public int getNextId()
getNextId
in interface FactHandleFactory
public long getNextRecency()
getNextRecency
in interface FactHandleFactory
public int getId()
getId
in interface FactHandleFactory
public long getRecency()
getRecency
in interface FactHandleFactory
public void clear(int id, long counter)
clear
in interface FactHandleFactory
public void reset()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.