ilog.rules.brl.brldf

Class IlrBRLCompositeVariableProvider

  • java.lang.Object
    • ilog.rules.brl.brldf.IlrBRLCompositeVariableProvider
  • All Implemented Interfaces:
    IlrBRLVariableProvider


    public class IlrBRLCompositeVariableProvider
    extends java.lang.Object
    implements IlrBRLVariableProvider
    This class composes two given variable providers by combining variables coming from these providers.
    • Constructor Detail

      • IlrBRLCompositeVariableProvider

        public IlrBRLCompositeVariableProvider(IlrBRLVariableProvider provider1,
                                       IlrBRLVariableProvider provider2)
        This constructor creates a composite variable provider from the two providers given as argument
    • Method Detail

      • getFirstVariableProvider

        public IlrBRLVariableProvider getFirstVariableProvider()
        This method returns the 1st provider composing this composite
        Returns:
        a variable provider
      • getSecondVariableProvider

        public IlrBRLVariableProvider getSecondVariableProvider()
        This method returns the 2nd provider composing this composite
        Returns:
        a 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.
      • 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.

© Copyright IBM Corp. 1987, 2017