ilog.rules.brl.parsing

Interface IlrBRLPredictionConfigurationDef

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      IlrConcept[] getExpectedConcepts()
      Returns the array of expected concepts for predictions generated by the prediction engine.
      IlrBRLSemanticFilter getGlobalSemanticFilter()
      Returns a global semantic filter that can be used to filter out predictions generated by the prediction engine.
      int getPredictionOffset()
      Returns where the prediction engine will predict in the parser input.
      java.util.Set getPredictions()
      Returns the set to which all predictions are added.
      boolean isAcceptingPlaceHolders()
      Checks if the prediction engine is generating predictions for placeholders.
      boolean isFullMode()
      Tests if the prediction engine is generating all available predictions.
      boolean isTemplateMode()
      Checks if the prediction engine is generating predictions in template mode.
      boolean valuesAndConstantsOnly()
      Checks if the prediction engine is generating value and constant predictions only.
    • Method Detail

      • getExpectedConcepts

        IlrConcept[] getExpectedConcepts()
        Returns the array of expected concepts for predictions generated by the prediction engine.
        Returns:
        The array of expected concepts. If null is returned, predictions are not constrained by any concept.
      • isFullMode

        boolean isFullMode()
        Tests if the prediction engine is generating all available predictions.
        Returns:
        If all predictions are generated, true is returned. If relevant predictions only are generated, false is returned.
      • isTemplateMode

        boolean isTemplateMode()
        Checks if the prediction engine is generating predictions in template mode.
        Returns:
        If predictions are generated in template mode, true is returned.
      • isAcceptingPlaceHolders

        boolean isAcceptingPlaceHolders()
        Checks if the prediction engine is generating predictions for placeholders.
        Returns:
        If predictions are generated for placeholders, true is returned.
      • valuesAndConstantsOnly

        boolean valuesAndConstantsOnly()
        Checks if the prediction engine is generating value and constant predictions only.
        Returns:
        If only values or constants will be predicted, true is returned.
      • getPredictionOffset

        int getPredictionOffset()
        Returns where the prediction engine will predict in the parser input. If the prediction offset is greater than or equal to 0, a prediction set must be supplied.
        Returns:
        The prediction offset in the parser input. If prediction is not allowed, -1 is returned.
        See Also:
        getPredictions()
      • getPredictions

        java.util.Set getPredictions()
        Returns the set to which all predictions are added. The prediction offset must be greater than or equal to 0.
        Returns:
        The non-null prediction set. Predictions are added by the prediction engine to the set returned.
        See Also:
        getPredictionOffset()
      • getGlobalSemanticFilter

        IlrBRLSemanticFilter getGlobalSemanticFilter()
        Returns a global semantic filter that can be used to filter out predictions generated by the prediction engine.
        Returns:
        A semantic filter. If null is returned the default filter declared in the language is used.

© Copyright IBM Corp. 1987, 2017