ilog.rules.vocabulary.model

Interface IlrSentence

  • All Superinterfaces:
    IlrBaseElement, IlrNotifier, IlrVocabularyElement, java.io.Serializable


    public interface IlrSentence
    extends IlrVocabularyElement
    This interface defines a sentence in the vocabulary.

    A sentence is the verbalization of a fact type, using a phrase in a natural language. A text template provides the verbalization of a fact type into a sentence. In a sentence, each role of the associated fact type plays a syntactic role, represented by the list of IlrSyntacticRoles of the sentence. See IlrSyntacticRole for details. There are different categories of sentences: navigation sentences, action sentences, and predicates. Sentences appear as navigation and action phrases in the BOM Editor.

    • Method Detail

      • getTextTemplate

        java.lang.String getTextTemplate()
        Gets the text template of this sentence.
        Returns:
        The text template of this sentence.
      • setTextTemplate

        void setTextTemplate(java.lang.String textTemplate)
        Sets a new text template for this sentence.
        Parameters:
        textTemplate - The new text template.
      • getCategory

        IlrSentenceCategory getCategory()
        Gets the category of this sentence.
        Returns:
        The category of this sentence.
      • setCategory

        void setCategory(IlrSentenceCategory value)
        Sets a category to this sentence.
        Parameters:
        value - The new category.
      • getSyntacticRoles

        java.util.List getSyntacticRoles()
        Gets the list of the syntactic roles in this sentence. The order of this list is the order of the role in the fact-type, not the order of appearance of the role in the sentence template.
        Returns:
        The list of syntactic roles.
      • getFactType

        IlrFactType getFactType()
        Gets the fact type to which this sentence is attached.
        Returns:
        The attached fact type.
      • getSyntacticRole

        IlrSyntacticRole getSyntacticRole(int index)
        Gets the syntactic role of this sentence at a given index.
        Parameters:
        index - The index of the syntactic role.
      • addSyntacticRole

        IlrSyntacticRole addSyntacticRole()
        Adds a new syntactic role to the list of syntactic roles in this sentence.
        Returns:
        The new syntactic role.
      • removeSyntacticRole

        void removeSyntacticRole(IlrSyntacticRole syntacticRole)
        Removes the specified syntactic role from this sentence.
        Parameters:
        syntacticRole - The syntactic role to remove.
      • addSyntacticRole

        void addSyntacticRole(IlrSyntacticRole syntacticRole)
        Adds a new syntactic role to this sentence, at the end of the list of syntactic roles.
        Parameters:
        syntacticRole - The syntactic role to add.
      • addSyntacticRoleAt

        void addSyntacticRoleAt(IlrSyntacticRole syntacticRole,
                              int index)
        Adds a new syntactic role to this sentence, at a given index.
        Parameters:
        syntacticRole - The syntactic role to add.
        index - The insertion index.
      • setSyntacticRoles

        void setSyntacticRoles(IlrSyntacticRole[] syntacticRoles)
        Sets a new list of syntactic roles. This totally replaces the previous syntactic roles of the sentence.
        Parameters:
        syntacticRoles - An array of syntactic roles.

© Copyright IBM Corp. 1987, 2017