Package net.pricefx.formulaengine.optimization
package net.pricefx.formulaengine.optimization
Model contexts of the price optimization module.
A model logic receives its context through the model binding. The type of that
context depends on the executing logic element.
ModelEvaluationFormulaContextserves model evaluation logics. It is read only.ModelCalculationFormulaContextserves model calculation logics. It is read and write.
Both are built on the base pair ModelFormulaContextReadOnly and
ModelFormulaContextReadWrite.
A parallel calculation runs in three phases. Each phase has its own context.
ModelParallelCalculationFormulaInitContextenqueues the calculation items.ModelParallelCalculationFormulaItemContextprocesses one item. An item can run repeatedly on several nodes, so item logic must be idempotent.ModelParallelCalculationFormulaSummaryContextconsumes the item results.
Sub contexts follow the same read only and read write split.
- Lookup tables:
ModelLookupTablesContextReadOnlyandModelLookupTablesContextReadWrite. - Filter trees:
ModelFilterTreesContextReadOnlyandModelFilterTreesContextReadWrite. - Schedules:
ModelSchedulesContextReadOnlyandModelSchedulesContextReadWrite.
ModelPMMLContext evaluates trained Predictive Model Markup Language (PMML)
models from model attachments. It is experimental.
ModelContext reaches another model from any logic. Obtain it with
api.model(uniqueName).
-
ClassDescriptionThe
ModelCalculationFormulaContextis exposed to model calculation logics through themodelbinding.TheModelEvaluationFormulaContextis exposed to model evaluation logics through themodelbinding.Represents a tree that can be fetched in various manners.Represents an in-memory tree that can be walked up and down.Represents an in-memory tree.Represents aLookupTableowned by aModelObjectRepresents aLookupTableowned by a ModelObject with mutable operationsTheModelParallelCalculationFormulaInitContextis exposed to model parallel calculation logics through themodelbinding.TheModelParallelCalculationFormulaItemContextis exposed to model parallel calculation logics through themodelbinding.TheModelParallelCalculationFormulaSummaryContextis exposed to model parallel calculation logics through themodelbinding.TheModelPMMLContextis exposed to model evaluations and calculations viamodelbinding.An evaluable PMML model.The representation of a Model Schedule accessible from a read-only context.A builder object helping to add or update a model schedule.