ilog.rules.dt.model.expression

Interface IlrDTExpressionSentence

  • All Superinterfaces:
    java.lang.Cloneable, DTTimeStampable, IlrDecorableElement, IlrDTElement, IlrDTExpression, IlrDTExpressionText, java.io.Serializable
    All Known Implementing Classes:
    ExpressionDefinition, ExpressionInstance

    Deprecated. 
    This interface is deprecated. Expression used in a DT Mode are now using IlrDTExpressionDefinition and IlrDTExpressionInstance instead that not necessarily map on a Sentence

    public interface IlrDTExpressionSentence
    extends IlrDTExpressionText
    Represents a vocabulary sentence used as a condition or an action of the DTModel. For example: the age of the customer is between 18 and 25.

    The expression is split in different parts:

    • the holder role expression: the age of the customer
    • the sentence context: <a number> is between <a number> and <a number>
    • the parameters roles: 18 and 25.
    You can change separately each part of the sentence. The number of parameters is automatically changed according to the sentence context. Note that the expression may be reset and so requires a parsing to be reinterpretted after a modification.

    • Method Detail

      • getExpressionSyntaxNode

        IlrSyntaxTree.Node getExpressionSyntaxNode(int index)
        Deprecated. 
        Parameters:
        index - The parameter role index.
        Returns:
        the node of the syntax tree corresponding to the parameter numbered index.
      • getHolderRoleExpression

        IlrDTExpressionRole getHolderRoleExpression()
        Deprecated. 
        Returns:
        The expression corresponding to the holder role.
      • getHolderRole

        IlrSyntacticRole getHolderRole()
        Deprecated. 
        Returns:
        The vocabulary syntactic role of the holder role expression.
      • getHolderRoleConcept

        IlrConcept getHolderRoleConcept()
        Deprecated. 
        Returns:
        The vocabulary concept of the holder role expression.
      • setHolderRoleText

        void setHolderRoleText(java.lang.String text)
        Deprecated. 
        Defines the text of the holder expression.
        Parameters:
        text - The new text of the holder role expression.
      • getSentenceContext

        IlrDTSentenceContext getSentenceContext()
        Deprecated. 
        Returns:
        The sentence context corresponding to the vocabulary sentence.
      • setSentenceContext

        void setSentenceContext(IlrDTSentenceContext sentenceContext)
        Deprecated. 
        Defines the sentence context of the expression sentence.
        Parameters:
        sentenceContext - The new sentence context
      • getParameterRoleCount

        int getParameterRoleCount()
        Deprecated. 
        Returns:
        The cardinality of the parameters of the sentence.
      • getParameterRoleExpression

        IlrDTExpressionRole getParameterRoleExpression(int index)
        Deprecated. 
        Parameters:
        index - The position of the parameter.
        Returns:
        The parameter role expression corresponding to the parameter at position index.
      • getParameterRole

        IlrSyntacticRole getParameterRole(int index)
        Deprecated. 
        Parameters:
        index - tTe position of the parameter.
        Returns:
        The vocabulary syntactic roles of the parameter at position index.
      • getParameterRoleConcept

        IlrConcept getParameterRoleConcept(int index)
        Deprecated. 
        Parameters:
        index - The position of the parameter.
        Returns:
        The vocabulary concept of the parameter at position index.
      • setParameterRoleText

        void setParameterRoleText(int index,
                                java.lang.String text)
        Deprecated. Defines the text of the parameter expression ar position index.
        Parameters:
        index - The position of the parameter.
        text - The new text of the parameter.

© Copyright IBM Corp. 1987, 2017