public class RecipeRecognizer
extends java.lang.Object
isEquivalentRecipe(ReteNodeRecipe, ReteNodeRecipe)
.Constructor and Description |
---|
RecipeRecognizer() |
RecipeRecognizer(IQueryRuntimeContext runtimeContext) |
Modifier and Type | Method and Description |
---|---|
ReteNodeRecipe |
canonicalizeRecipe(ReteNodeRecipe recipe)
Ensures that there is an equivalent canonical recipe; if none is known yet, this recipe will be remembered as
canonical.
|
boolean |
isKnownCanonicalRecipe(ReteNodeRecipe recipe) |
void |
makeCanonical(ReteNodeRecipe recipe)
This recipe will be remembered as a canonical recipe.
|
ReteNodeRecipe |
peekCanonicalRecipe(ReteNodeRecipe recipe)
Recognizes when an equivalent canonical recipe is already known.
|
public RecipeRecognizer(IQueryRuntimeContext runtimeContext)
can
- be null; if provided, further equivalences can be detected based on IQueryRuntimeContext.wrapElement(Object)
public RecipeRecognizer()
public ReteNodeRecipe peekCanonicalRecipe(ReteNodeRecipe recipe)
public void makeCanonical(ReteNodeRecipe recipe)
peekCanonicalRecipe(ReteNodeRecipe)
must return
null or the recipe itselfpublic ReteNodeRecipe canonicalizeRecipe(ReteNodeRecipe recipe)
public boolean isKnownCanonicalRecipe(ReteNodeRecipe recipe)