org.jactr.core.production.request
Class ChunkTypeRequest

java.lang.Object
  extended by org.jactr.core.production.request.SlotBasedRequest
      extended by org.jactr.core.production.request.ChunkTypeRequest
All Implemented Interfaces:
java.lang.Cloneable, IRequest, ISlotContainer
Direct Known Subclasses:
ChunkRequest

public class ChunkTypeRequest
extends SlotBasedRequest


Constructor Summary
ChunkTypeRequest(IChunkType chunkType)
           
ChunkTypeRequest(IChunkType chunkType, java.util.Collection<? extends ISlot> slots)
           
 
Method Summary
 int bind(IChunk testChunk, IModel model, java.util.Map<java.lang.String,java.lang.Object> bindings, boolean iterativeCall)
          same idea as IRequest.bind(IModel, Map, boolean)
 ChunkTypeRequest clone()
          duplicate this IRequest so that the clone can be resolved against since the process is destructive
 ChunkTypeRequest clone(IChunk testChunk)
          shortcut clone that can be used to by pass the actual cloing if we can determine now that it can't be matched
 IChunkType getChunkType()
           
 
Methods inherited from class org.jactr.core.production.request.SlotBasedRequest
addSlot, bind, bind, getConditionalSlots, getSlots, getSlots, removeSlot
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChunkTypeRequest

public ChunkTypeRequest(IChunkType chunkType)

ChunkTypeRequest

public ChunkTypeRequest(IChunkType chunkType,
                        java.util.Collection<? extends ISlot> slots)
Method Detail

clone

public ChunkTypeRequest clone()
Description copied from interface: IRequest
duplicate this IRequest so that the clone can be resolved against since the process is destructive

Specified by:
clone in interface IRequest
Overrides:
clone in class SlotBasedRequest
Returns:
deep copy

clone

public ChunkTypeRequest clone(IChunk testChunk)
                       throws CannotMatchException
shortcut clone that can be used to by pass the actual cloing if we can determine now that it can't be matched

Parameters:
testChunk -
Returns:
Throws:
CannotMatchException

getChunkType

public IChunkType getChunkType()

bind

public int bind(IChunk testChunk,
                IModel model,
                java.util.Map<java.lang.String,java.lang.Object> bindings,
                boolean iterativeCall)
         throws CannotMatchException
same idea as IRequest.bind(IModel, Map, boolean)

Parameters:
testChunk -
model -
bindings -
Returns:
Throws:
CannotMatchException