ilog.rules.dt

Interface IlrDTEnvironment

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    IlrDTAbstractEnvironment, IlrDTService


    public interface IlrDTEnvironment
    extends java.io.Serializable
    IlrDTEnvironment specifies the API of an object that provides the DT model with an environment.

    Overview

    This environment is used by the DT functionality to access external resources such as a vocabulary, a variable provider, or a BRL Parser.

    An abstract implementation of this interface is provided and should be used as the base class for any implementation of this interface.

    See Also:
    IlrDTAbstractEnvironment
    • Method Detail

      • getVocabulary

        IlrVocabulary getVocabulary(java.util.Locale locale)
        Returns the vocabulary of the environment in which the DT functionality is used.
        Parameters:
        locale - The locale associated with the vocabulary.
        Returns:
        The vocabulary associated with locale.
      • getVariableProvider

        IlrBRLVariableProvider getVariableProvider()
        Returns the variable provider associated with this environment. A variable provider gives access to external variables in a decision table or tree.

        An example of external variables are the ruleset parameters of the enclosing rule project.

        Returns:
        The variable provider.
      • getParser

        IlrBRLParser getParser(IlrDTRuleElement dt)
        Returns a BRL parser on the BAL grammar for a given DT element. The returned parser is supposed to be based on the vocabulary returned by this environment and the locale of dt.
        Parameters:
        dt - The DT element the returned parser will be used for.
        Returns:
        The BAL parser for the given DT element.

© Copyright IBM Corp. 1987, 2017