ilog.rules.vocabulary.model

Interface IlrRole

  • All Superinterfaces:
    IlrBaseElement, IlrMutableVerbalizable, IlrNotifier, IlrVerbalizable, java.io.Serializable


    public interface IlrRole
    extends IlrBaseElement, IlrMutableVerbalizable
    This interface defines the role of a fact type.

    A role is a link between a fact type and a concept. A fact type contains an ordered list of roles, one of which is the holder role. The holder role represents the concept that holds the fact type. A fact type must have one, and only one holder role.

    Internally, only the identifier of the concept attached to a role is stored, not the concept itself. To retrieve the actual concept from a role, you must use the method IlrVocabulary.getConcept(IlrRole).

    • Method Detail

      • isHolderRole

        boolean isHolderRole()
        Returns true if this role is a holder role. A holder role represents the concept that holds a fact type.
      • getHolderConcept

        IlrConcept getHolderConcept()
        Gets the holder concept referenced by this role, or returns null if this role is not a holder role.
        Returns:
        The holder concept referenced by this role, or null.
      • setConcept

        void setConcept(IlrConcept newConcept)
        Sets the concept referenced by this role. Internally, only the concept identifier is stored.
        Parameters:
        newConcept - The new concept referenced by this role.
      • getFactType

        IlrFactType getFactType()
        Gets the fact type that contains this role.
        Returns:
        The fact type.
      • getIndex

        int getIndex()
        Gets the index of this role.
        Returns:
        The index of the role.
      • getConceptRef

        java.lang.String getConceptRef()
        Gets the identifier of the referenced concept.
        Returns:
        The identifier of the referenced concept.

© Copyright IBM Corp. 1987, 2017