org.jactr.core.chunk.event
Class ChunkEvent
java.lang.Object
org.jactr.core.event.AbstractACTREvent<IChunk,IChunkListener>
org.jactr.core.chunk.event.ChunkEvent
- All Implemented Interfaces:
- IACTREvent<IChunk,IChunkListener>
public class ChunkEvent
- extends AbstractACTREvent<IChunk,IChunkListener>
- implements IACTREvent<IChunk,IChunkListener>
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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()