Class DependentValueContext

All Implemented Interfaces:
IEventChannel, IProfile, IProfileLifecycle, InferenceContext, Serializable

public class DependentValueContext extends InferenceContextDelegate implements InferenceContext
Inference Context wrapper for decision tables that returns values for actions that have already been inferenced. This wrapper allows subsequent actions to refer to previous action values without causing a circular reasoning exception. See also issue: AQU-2015
Since:
6.3
Author:
O. Kerpershoek
See Also:
  • Constructor Details

  • Method Details

    • addActionResult

      protected void addActionResult(String attribute, IValue inferenceResult)
    • getActiveInstance

      public IEntityInstance getActiveInstance(String entityName)
      Description copied from interface: InferenceContext
      This method returns the active instance for the specified type. When no active instance can be found for the specified type, the type is assumed to be a singleton instance. When this method is invoked for a non singleton type without any active instance, the call to the getSingletonInstance will fail due to a CreateInstanceException.
      Specified by:
      getActiveInstance in interface InferenceContext
      Overrides:
      getActiveInstance in class InferenceContextDelegate
      Parameters:
      entityName - The entity type for which the active instance is requested.
      Returns:
      The instance that is active for the specified type.