public class ChunkCondition extends ChunkTypeCondition
Constructor and Description |
---|
ChunkCondition(java.lang.String bufferName,
IChunk chunk) |
ChunkCondition(java.lang.String bufferName,
IChunk chunk,
java.util.Collection<? extends ISlot> slots) |
Modifier and Type | Method and Description |
---|---|
int |
bind(IModel model,
VariableBindings variableBindings,
boolean isIterative)
Iteratively perform the resolution and binding for this condition.
|
ChunkCondition |
clone(IModel model,
VariableBindings bindings)
attempt to clone this condition before it will be bound in the
instantiation phase.
|
boolean |
equals(java.lang.Object obj) |
IChunk |
getChunk() |
int |
hashCode() |
createToString, getChunkType, getRequest
getActivationBuffer, getBufferName
addSlot, clearToString, dispose, getConditionalSlots, getSlots, getSlots, removeSlot, setRequest, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
dispose
public ChunkCondition(java.lang.String bufferName, IChunk chunk)
public IChunk getChunk()
org.jactr.core.utils.Duplicateable#duplicate()
public ChunkCondition clone(IModel model, VariableBindings bindings) throws CannotMatchException
ICondition
clone
in interface ICondition
clone
in class ChunkTypeCondition
CannotMatchException
- if there is no way this condition can be matchedpublic int bind(IModel model, VariableBindings variableBindings, boolean isIterative) throws CannotMatchException
ICondition
bind
in interface ICondition
bind
in class ChunkTypeCondition
CannotMatchException
public int hashCode()
hashCode
in class ChunkTypeCondition
public boolean equals(java.lang.Object obj)
equals
in class ChunkTypeCondition