ilog.rules.brl.semantic

Class IlrBRLSemanticFilterAdapter

  • java.lang.Object
    • ilog.rules.brl.semantic.IlrBRLSemanticFilterAdapter
    • Constructor Detail

      • IlrBRLSemanticFilterAdapter

        public IlrBRLSemanticFilterAdapter()
    • Method Detail

      • acceptValue

        public boolean acceptValue(IlrBRLSemanticContext context,
                          IlrSyntaxTree.Node node,
                          IlrConcept concept)
        Description copied from interface: IlrBRLSemanticFilter
        States if any value of the given concept is accepted. This method is invoked when a value can be predicted. If a Value Provider is associated to this prediction context, it will be invoked only if this filter answers true in this method.
        Specified by:
        acceptValue in interface IlrBRLSemanticFilter
        Parameters:
        context - The associated semantic context.
        node - The node under which a value can be added.
        concept - The concept representing the predicted value.
        Returns:
        true if a value is accepted, false otherwise.
      • acceptConceptInstance

        public boolean acceptConceptInstance(IlrBRLSemanticContext context,
                                    IlrSyntaxTree.Node node,
                                    IlrConceptInstance conceptInstance)
        Description copied from interface: IlrBRLSemanticFilter
        States if a concept instance is accepted. This method is invoked when a concept instance can be predicted.
        Specified by:
        acceptConceptInstance in interface IlrBRLSemanticFilter
        Parameters:
        context - The associated semantic context.
        node - The node under which a concept instance can be added.
        conceptInstance - The predicted concept instance.
        Returns:
        true if the concept instance is accepted, false otherwise.
      • acceptSentence

        public boolean acceptSentence(IlrBRLSemanticContext context,
                             IlrSyntaxTree.Node node,
                             IlrSentence sentence)
        Description copied from interface: IlrBRLSemanticFilter
        States if a sentence is accepted. This method is invoked when a sentence can be predict.
        Specified by:
        acceptSentence in interface IlrBRLSemanticFilter
        Parameters:
        context - The associated semantic context.
        node - The node under which a sentence can be added.
        sentence - The predicted sentence.
        Returns:
        true if the sentence is accepted, false otherwise.
      • acceptConcept

        public boolean acceptConcept(IlrBRLSemanticContext context,
                            IlrSyntaxTree.Node node,
                            IlrConcept concept)
        Description copied from interface: IlrBRLSemanticFilter
        States if a concept is accepted. This method is invoked when a concept can be predict.
        Specified by:
        acceptConcept in interface IlrBRLSemanticFilter
        Parameters:
        context - The associated semantic context.
        node - The node under which a concept can be added.
        concept - The predicted concept.
        Returns:
        true if the concept is accepted, false otherwise.

© Copyright IBM Corp. 1987, 2017