Class PlanningTrace
java.lang.Object
tools.refinery.interpreter.rete.traceability.RecipeTraceInfo
tools.refinery.interpreter.rete.traceability.PlanningTrace
- All Implemented Interfaces:
PatternTraceInfo,TraceInfo
- Direct Known Subclasses:
CompiledSubPlan
A trace marker associating a Rete recipe with a query SubPlan.
The recipe may be an auxiliary node;
see CompiledSubPlan if it represents the entire SubPlan instead.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlanningTrace(SubPlan subPlan, List<PVariable> variablesTuple, ReteNodeRecipe recipe, Collection<? extends RecipeTraceInfo> parentRecipeTraces) PlanningTrace(SubPlan subPlan, List<PVariable> variablesTuple, ReteNodeRecipe recipe, RecipeTraceInfo... parentRecipeTraces) -
Method Summary
Modifier and TypeMethodDescriptionReturns a new clone that reinterprets the same compiled form as the compiled form of a (potentially different) subPlan.Methods inherited from class tools.refinery.interpreter.rete.traceability.RecipeTraceInfo
assignNode, getNode, getParentRecipeTraces, getParentRecipeTracesForCloning, getRecipe, getShadowedRecipe, propagateFromIndexerToSupplierParent, propagateFromStandardNodeToSupplierParent, propagateToIndexerParent, propagateToProductionNodeParentAlso, shadowWithEquivalentRecipeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tools.refinery.interpreter.rete.traceability.TraceInfo
assignNode, getNode, propagateFromIndexerToSupplierParent, propagateFromStandardNodeToSupplierParent, propagateToIndexerParent, propagateToProductionNodeParentAlso
-
Field Details
-
subPlan
-
variablesTuple
-
posMapping
-
-
Constructor Details
-
PlanningTrace
public PlanningTrace(SubPlan subPlan, List<PVariable> variablesTuple, ReteNodeRecipe recipe, Collection<? extends RecipeTraceInfo> parentRecipeTraces) -
PlanningTrace
public PlanningTrace(SubPlan subPlan, List<PVariable> variablesTuple, ReteNodeRecipe recipe, RecipeTraceInfo... parentRecipeTraces)
-
-
Method Details
-
getSubPlan
-
getPatternName
- Specified by:
getPatternNamein interfacePatternTraceInfo
-
getVariablesTuple
-
getPosMapping
-
cloneFor
Returns a new clone that reinterprets the same compiled form as the compiled form of a (potentially different) subPlan. Useful e.g. if child plan turns out to be a no-op, or when promoting aPlanningTracetoCompiledSubPlan.
-