ilog.rules.dt

Class IlrDTVariableManager

  • java.lang.Object
    • ilog.rules.dt.IlrDTVariableManager
  • All Implemented Interfaces:
    IlrBRLVariableProvider, java.io.Serializable


    public class IlrDTVariableManager
    extends java.lang.Object
    implements IlrBRLVariableProvider, java.io.Serializable
    This class handles variables accessible from expressions in the decision table. An instance of this class is associated to the DT Controller to store variables of the preconditions. This class provide an API to retrieve a Variable Provider to be associated to BRL parsers used with DTs. The Variable Provider extends the variable set with variables declared in the preconditions and also give access to variables of the environment (ruleset parameters and global variables). Instances of this class should be reset when the environment has changed (vocabulary for instance) and when the text of preconditions has changed.
    See Also:
    Serialized Form
    • Method Detail

      • visit

        public boolean visit(IlrVocabulary vocabulary,
                    IlrBRLVariableProvider.Visitor visitor)
        Description copied from interface: IlrBRLVariableProvider
        Visits the variable provider by iterating on all variables declared by this provider. The visit must be stopped as soon as the given visitor returns false.
        Specified by:
        visit in interface IlrBRLVariableProvider
        Parameters:
        vocabulary - The vocabulary in which variables are looked up.
        visitor - A variable visitor called for all variables declared in this variable provider.
      • getVariable

        public IlrBRLVariable getVariable(IlrVocabulary vocabulary,
                                 java.lang.String name)
        Description copied from interface: IlrBRLVariableProvider
        Returns a variable with that name, or null if there is no variable corresponding to that name.
        Specified by:
        getVariable in interface IlrBRLVariableProvider
        Parameters:
        vocabulary - The vocabulary in which this variable is looked up.
        name - The name of the variable to look for.

© Copyright IBM Corp. 1987, 2017