org.jactr.core.buffer.delegate
Class AddChunkRequestDelegate

java.lang.Object
  extended by org.jactr.core.buffer.delegate.AsynchronousRequestDelegate
      extended by org.jactr.core.buffer.delegate.AddChunkRequestDelegate
All Implemented Interfaces:
IRequestDelegate
Direct Known Subclasses:
ImaginalAddChunkRequestDelegate

public class AddChunkRequestDelegate
extends AsynchronousRequestDelegate

takes a chunk pattern and if the chunk is already encoded, copies it, before inserting into the buffer via IActivationBuffer.addSourceChunk(org.jactr.core.chunk.IChunk). If the chunk is encoded and there are slots to be modified, the chunk will automatically be copied.

Author:
harrison

Constructor Summary
AddChunkRequestDelegate()
          default is to copy encoded chunks
AddChunkRequestDelegate(boolean copyEncodedChunks)
           
 
Method Summary
 boolean willAccept(IRequest request)
           
 
Methods inherited from class org.jactr.core.buffer.delegate.AsynchronousRequestDelegate
clear, isAsynchronous, isDelayingStart, isUsingBlockingTimedEvents, request, setAsynchronous, setDelayStart, setUseBlockingTimedEvents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddChunkRequestDelegate

public AddChunkRequestDelegate()
default is to copy encoded chunks


AddChunkRequestDelegate

public AddChunkRequestDelegate(boolean copyEncodedChunks)
                        throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException
Method Detail

willAccept

public boolean willAccept(IRequest request)