ilog.rules.brl.brldf

Class IlrBRLVariableHelper

  • java.lang.Object
    • ilog.rules.brl.brldf.IlrBRLVariableHelper


  • public class IlrBRLVariableHelper
    extends java.lang.Object
    A helper for BRL variables and variable providers. This helper provides API to create external variables that are managed by a Variable Provider.
    See Also:
    IlrBRLVariable, IlrBRLVariableProvider
    • Method Detail

      • createExternalVariable

        public static IlrBRLVariable createExternalVariable(java.lang.String name,
                                            IlrConcept type,
                                            IlrCardinality cardinality,
                                            java.lang.String executableName,
                                            boolean assignable)
        Creates a external variable that can be accessed from a variable provider IlrBRLVariableProvider.
        Parameters:
        name - The name of the variable.
        type - The type of the variable IlrConcept.
        cardinality - The cardinality of the variable IlrCardinality.
        executableName - The executable name of the variable.
        assignable - If true the variable can be assigned.
        Returns:
        An implementation of an external variable IlrBRLVariable.
        See Also:
        IlrBRLVariableProvider
      • createParameterVariable

        public static IlrBRLVariable createParameterVariable(java.lang.String name,
                                             IlrConcept type,
                                             IlrCardinality cardinality,
                                             java.lang.String executableName,
                                             boolean assignable)
        Deprecated. 
        Creates a external parameter variable that can be accessed from a variable provider IlrBRLVariableProvider.
        Parameters:
        name - The name of the variable.
        type - The type of the variable IlrConcept.
        cardinality - The cardinality of the variable IlrCardinality.
        executableName - The executable name of the variable.
        assignable - If true the variable can be assigned.
        Returns:
        An implementation of an external variable IlrBRLVariable which answer true to isRulesetParameter() API
        See Also:
        IlrBRLVariableProvider
      • createParameterVariable

        public static IlrBRLVariable createParameterVariable(java.lang.String name,
                                             IlrConcept type,
                                             IlrCardinality cardinality,
                                             java.lang.String bomType,
                                             java.lang.String executableName,
                                             boolean assignable)
        Creates a external parameter variable that can be accessed from a variable provider IlrBRLVariableProvider.
        Parameters:
        name - The name of the variable.
        type - The type of the variable IlrConcept.
        cardinality - The cardinality of the variable IlrCardinality.
        bomType - The executable type, usually a BOM type name.
        executableName - The executable name of the variable.
        assignable - If true the variable can be assigned.
        Returns:
        An implementation of an external variable IlrBRLVariable which answer true to isRulesetParameter() API
        See Also:
        IlrBRLVariableProvider

© Copyright IBM Corp. 1987, 2017