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(DefaultDeclarativeLearningModule4 learning)
           
 
Method Summary
 void chunkEncoded(ChunkEvent ce)
           
 void mergingInto(ChunkEvent event)
          handles the updating of associative links
 void mergingWith(ChunkEvent ce)
          ChunkEvent.getChunk() is about to be merged into AbstractACTREvent.getSource()
 void slotChanged(ChunkEvent ce)
           
 
Methods inherited from class org.jactr.core.chunk.event.ChunkListenerAdaptor
chunkAccessed, similarityChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChunkListener

public ChunkListener(DefaultDeclarativeLearningModule4 learning)
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

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

mergingWith

public void mergingWith(ChunkEvent ce)
Description copied from interface: IChunkListener
ChunkEvent.getChunk() is about to be merged into AbstractACTREvent.getSource()

Specified by:
mergingWith in interface IChunkListener
Overrides:
mergingWith in class ChunkListenerAdaptor

slotChanged

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