public abstract class AbstractFactHandleFactory extends Object implements FactHandleFactory
Constructor and Description |
---|
AbstractFactHandleFactory() |
AbstractFactHandleFactory(long id,
long counter) |
Modifier and Type | Method and Description |
---|---|
void |
clear(long id,
long counter) |
void |
destroyFactHandle(InternalFactHandle factHandle) |
void |
doRecycleIds(Collection<Long> usedIds) |
long |
getId() |
long |
getNextId() |
long |
getNextRecency() |
long |
getRecency() |
void |
increaseFactHandleRecency(InternalFactHandle factHandle)
Increases the recency of the FactHandle
|
abstract InternalFactHandle |
newFactHandle(long id,
Object object,
long recency,
ObjectTypeConf conf,
InternalWorkingMemory workingMemory,
WorkingMemoryEntryPoint wmEntryPoint) |
InternalFactHandle |
newFactHandle(long 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 |
stopRecycleIds() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFactHandleType, newInstance
public AbstractFactHandleFactory()
public AbstractFactHandleFactory(long id, long counter)
public final InternalFactHandle newFactHandle(Object object, ObjectTypeConf conf, InternalWorkingMemory workingMemory, WorkingMemoryEntryPoint wmEntryPoint)
FactHandleFactory
newFactHandle
in interface FactHandleFactory
public final InternalFactHandle newFactHandle(long id, Object object, ObjectTypeConf conf, InternalWorkingMemory workingMemory, WorkingMemoryEntryPoint wmEntryPoint)
public abstract InternalFactHandle newFactHandle(long 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 long getNextId()
getNextId
in interface FactHandleFactory
public long getNextRecency()
getNextRecency
in interface FactHandleFactory
public long getId()
getId
in interface FactHandleFactory
public long getRecency()
getRecency
in interface FactHandleFactory
public void clear(long id, long counter)
clear
in interface FactHandleFactory
public void doRecycleIds(Collection<Long> usedIds)
doRecycleIds
in interface FactHandleFactory
public void stopRecycleIds()
stopRecycleIds
in interface FactHandleFactory
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.