public class ChunkListener extends ChunkListenerAdaptor
Constructor and Description |
---|
ChunkListener(DefaultAssociativeLinkageSystem4 linkageSystem) |
Modifier and Type | Method and Description |
---|---|
void |
chunkEncoded(ChunkEvent ce) |
protected void |
copyMergingIntoMaster(IChunk master,
IChunk copy)
if a copy of master and master are to be merged, and copy has master's
subsymbolics, then master can simply assume the same values and links.
|
void |
mergingInto(ChunkEvent event)
handles the updating of associative links, The updating is done here since
the listener is removed after encoding, so the master chunk will not have
this listener attached
|
protected void |
newMergingIntoMaster(IChunk master,
IChunk identical)
a new chunk merging into an existing one requires that the new links be
updated and absorbed into master, while addressing links between master and
identical (new).
|
protected void |
processLinks(IChunk master,
IChunk copy,
boolean absorbLinks,
boolean processJLinks,
double fnicjCorrection) |
protected double[] |
processSelfLinks(IChunk master,
IChunk copy,
boolean absorb)
merge copy's self link with master's.
|
void |
slotChanged(ChunkEvent ce) |
chunkAccessed, mergingWith, similarityChanged
public ChunkListener(DefaultAssociativeLinkageSystem4 linkageSystem)
public void chunkEncoded(ChunkEvent ce)
chunkEncoded
in interface IChunkListener
chunkEncoded
in class ChunkListenerAdaptor
public void mergingInto(ChunkEvent event)
mergingInto
in interface IChunkListener
mergingInto
in class ChunkListenerAdaptor
event
- ChunkListenerAdaptor.mergingInto(org.jactr.core.chunk.event.ChunkEvent)
protected double[] processSelfLinks(IChunk master, IChunk copy, boolean absorb)
master
- copy
- absorb
- if true, copy's self-link values will override mastersprotected void processLinks(IChunk master, IChunk copy, boolean absorbLinks, boolean processJLinks, double fnicjCorrection)
master
- copy
- absorbLinks
- true if copies links should override master's values. false if
they are to be merged insteadprocessJLinks
- true to process the links where copy and master are the i, false
if they are the jprotected void copyMergingIntoMaster(IChunk master, IChunk copy)
master
- copy
- protected void newMergingIntoMaster(IChunk master, IChunk identical)
master
- identical
- public void slotChanged(ChunkEvent ce)
slotChanged
in interface IChunkListener
slotChanged
in class ChunkListenerAdaptor