org.jactr.core.chunk.event
Class ChunkEvent

java.lang.Object
  extended by org.jactr.core.event.AbstractACTREvent<IChunk,IChunkListener>
      extended by org.jactr.core.chunk.event.ChunkEvent
All Implemented Interfaces:
IACTREvent<IChunk,IChunkListener>

public class ChunkEvent
extends AbstractACTREvent<IChunk,IChunkListener>
implements IACTREvent<IChunk,IChunkListener>


Nested Class Summary
static class ChunkEvent.Type
           
 
Constructor Summary
ChunkEvent(IChunk source, ChunkEvent.Type type)
           
ChunkEvent(IChunk sourceAndOriginalChunk, ChunkEvent.Type type, IChunk mergie)
           
ChunkEvent(IChunk source, IChunk similarChunk, double oldSim, double newSim)
           
ChunkEvent(IChunk source, ISlot slot, java.lang.Object oldValue)
           
 
Method Summary
 void fire(IChunkListener listener)
          dispatch this event to a listener on the provided executor
 IChunk getChunk()
           
 double getNewSimilarity()
           
 java.lang.Object getNewSlotValue()
           
 double getOldSimilarity()
           
 java.lang.Object getOldSlotValue()
           
 IChunk getSimilarChunk()
           
 java.lang.String getSlotName()
           
 ChunkEvent.Type getType()
           
 
Methods inherited from class org.jactr.core.event.AbstractACTREvent
getSimulationTime, getSource, getSystemTime
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jactr.core.event.IACTREvent
getSimulationTime, getSource, getSystemTime
 

Constructor Detail

ChunkEvent

public ChunkEvent(IChunk source,
                  ChunkEvent.Type type)

ChunkEvent

public ChunkEvent(IChunk source,
                  ISlot slot,
                  java.lang.Object oldValue)

ChunkEvent

public ChunkEvent(IChunk source,
                  IChunk similarChunk,
                  double oldSim,
                  double newSim)

ChunkEvent

public ChunkEvent(IChunk sourceAndOriginalChunk,
                  ChunkEvent.Type type,
                  IChunk mergie)
Method Detail

getType

public ChunkEvent.Type getType()

fire

public void fire(IChunkListener listener)
Description copied from interface: IACTREvent
dispatch this event to a listener on the provided executor

Specified by:
fire in interface IACTREvent<IChunk,IChunkListener>
Specified by:
fire in class AbstractACTREvent<IChunk,IChunkListener>

getSlotName

public java.lang.String getSlotName()

getNewSlotValue

public java.lang.Object getNewSlotValue()

getOldSlotValue

public java.lang.Object getOldSlotValue()

getSimilarChunk

public IChunk getSimilarChunk()

getOldSimilarity

public double getOldSimilarity()

getNewSimilarity

public double getNewSimilarity()

getChunk

public IChunk getChunk()