ilog.rules.brl.brldf

Class IlrBRLDefaultVariableProvider

  • java.lang.Object
    • ilog.rules.brl.brldf.IlrBRLDefaultVariableProvider
    • Constructor Detail

      • IlrBRLDefaultVariableProvider

        public IlrBRLDefaultVariableProvider(java.util.Collection<IlrBRLVariable> variables)
        This constructor creates a default Variable Provider managing a set of variables given as argument.
        Parameters:
        variables - a collection of variables
    • Method Detail

      • 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.
      • 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.
      • addVariable

        public void addVariable(IlrBRLVariable variable)
        This method adds a variable to be managed by this Variable Provider.
        Parameters:
        variable - the variable to be added
      • removeVariable

        public void removeVariable(java.lang.String name)
        This method removes a variable from this Variable Provider.
        Parameters:
        name - the name of the variable to be removed
      • removeVariables

        public void removeVariables()
        This method removes all variables managed by this Variable Provider.
      • getVariables

        public java.util.Collection<IlrBRLVariable> getVariables()
        This method returns the list of variables held by this variable provider
        Returns:
        a non-null collection of IlrBRLVariable objects

© Copyright IBM Corp. 1987, 2017