ilog.rules.dt

Class IlrDTAbstractEnvironment

  • java.lang.Object
    • ilog.rules.dt.IlrDTAbstractEnvironment
  • All Implemented Interfaces:
    IlrDTEnvironment, java.io.Serializable


    public abstract class IlrDTAbstractEnvironment
    extends java.lang.Object
    implements IlrDTEnvironment
    IlrDTAbstractEnvironment is an abstract partial implementation of the IlrDTEnvironment interface. An IlrDTAbstractEnvironment instance manages internally a parser manager that provides parsing services.

    Use this class as a base class to implement a DT environment.

    See Also:
    Serialized Form
    • Constructor Detail

      • IlrDTAbstractEnvironment

        public IlrDTAbstractEnvironment()
        Deprecated. use the constructor that takes a Vocabulary Manager
      • IlrDTAbstractEnvironment

        public IlrDTAbstractEnvironment(IlrVocabularyManager vocabularyManager)
        Creates a new IlrDTAbstractEnvironment instance.
        Parameters:
        vocabularyManager - A vocabulary manager that gives access to a vocabulary.
    • Method Detail

      • setParserManager

        public void setParserManager(IlrBRLParserManager mgr)
        Deprecated. use setBRLParserManager()
      • getParser

        public IlrBRLParser getParser(IlrDTRuleElement dt)
        Description copied from interface: IlrDTEnvironment
        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.
        Specified by:
        getParser in interface IlrDTEnvironment
        Parameters:
        dt - The DT element the returned parser will be used for.
        Returns:
        The BAL parser for the given DT element.
      • getVocabulary

        public IlrVocabulary getVocabulary(java.util.Locale locale)
        Description copied from interface: IlrDTEnvironment
        Returns the vocabulary of the environment in which the DT functionality is used.
        Specified by:
        getVocabulary in interface IlrDTEnvironment
        Parameters:
        locale - The locale associated with the vocabulary.
        Returns:
        The vocabulary associated with locale.

© Copyright IBM Corp. 1987, 2017