org.jactr.core.module.declarative.four.learning
Class ChunkListener

java.lang.Object
  extended by org.jactr.core.chunk.event.ChunkListenerAdaptor
      extended by org.jactr.core.module.declarative.four.learning.ChunkListener
All Implemented Interfaces:
java.util.EventListener, IChunkListener

public class ChunkListener
extends ChunkListenerAdaptor

we just listen for slot value changes so that Links can be created correctly.

Author:
developer

Constructor Summary
ChunkListener()
           
 
Method Summary
 void chunkEncoded(ChunkEvent ce)
           
 void mergingInto(ChunkEvent event)
          handles the updating of associative links, references times, and context/needed tallies.
 void slotChanged(ChunkEvent ce)
           
 
Methods inherited from class org.jactr.core.chunk.event.ChunkListenerAdaptor
chunkAccessed, mergingWith, similarityChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChunkListener

public ChunkListener()
Method Detail

chunkEncoded

public void chunkEncoded(ChunkEvent ce)
Specified by:
chunkEncoded in interface IChunkListener
Overrides:
chunkEncoded in class ChunkListenerAdaptor

mergingInto

public void mergingInto(ChunkEvent event)
handles the updating of associative links, references times, and context/needed tallies. should also handle similarities, but that is not implemented yet and will be by the six version of this.
The updating is done here since the listener is removed after encoding, so the master chunk will not have this listener attached

Specified by:
mergingInto in interface IChunkListener
Overrides:
mergingInto in class ChunkListenerAdaptor
Parameters:
event -
See Also:
ChunkListenerAdaptor.mergingInto(org.jactr.core.chunk.event.ChunkEvent)

slotChanged

public void slotChanged(ChunkEvent ce)
Specified by:
slotChanged in interface IChunkListener
Overrides:
slotChanged in class ChunkListenerAdaptor