ilog.rules.vocabulary.model

Interface IlrConcept

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


    public interface IlrConcept
    extends IlrBusinessArtifact, IlrMutableVerbalizable
    This interface defines concepts in a vocabulary.

    A concept defines a single entity of a vocabulary. Entities such as customer or shopping cart are concepts.

    A concept may specialize another concept, as in an inheritance relationship. In this relationship, a concept concept1 is said to be a parent concept for concept2. For example, the concept pet is the parent concept of cat and dog. A concept may have zero or more parents.

    Concepts are bound together by fact types. See the interface IlrFactType for details.

    A specific instance of a concept may be represented by an object, called concept instance. See the interface IlrConceptInstance for details.

    Concepts appear in the business rule vocabulary as terms (see IlrTerm). The link between a concept and a term is the label, which serves as a resolution key (a concept and its corresponding term share the same label).

    When the vocabulary is based on a business object model (IlrObjectModel), then an IlrConcept is mapped to an IlrClass. This mapping is done with the fully-qualified name of the BOM class, which is used as the identifier of the concept.

    This interface defines all the methods necessary to handle concepts in a vocabulary. A concept is uniquely identified by its identifier. A concept may be flagged as a value type (see isValueType()), which indicates that this concept is considered as a type for values in business rules. For example, the concepts string, number or date are value types. A concept may also be flagged as a proxy (see isProxy()), which means that this concept is a reference to a concept which is missing in the instance of vocabulary. The missing concept could be a concept defined in another vocabulary.

    • Method Detail

      • addParentConcept

        void addParentConcept(IlrConcept concept)
        Adds a given concept to the list of parent concepts.
        Parameters:
        concept - The concept to be added to the list of parents.
      • removeParentConcept

        void removeParentConcept(IlrConcept concept)
        Removes a given concept from the list of parent concepts. If the concept is not a parent concept, the method has no effect.
        Parameters:
        concept - The concept to be removed from the list of parents.
      • getParentsConceptRef

        java.util.List getParentsConceptRef()
        Returns the list of identifiers of the parent concepts.
        Returns:
        The list of identifiers.
      • getHolderRoles

        java.util.List getHolderRoles()
        Returns the list of holder roles.
        Returns:
        The list of holder roles.
      • getHeldFactTypes

        java.util.List getHeldFactTypes()
        Gets the fact types in which this concept is represented as holder role.
        Returns:
        The list of fact types.
      • getFactType

        IlrFactType getFactType(java.lang.String factTypeName)
        Gets a fact type by its name, from the list of held fact types.
        Parameters:
        factTypeName - The name of the fact type.
        Returns:
        An instance of IlrFactType, or null.
      • isValueType

        boolean isValueType()
        Tests if this concept is a value type. When a concept is flagged as a value type, ,it is considered as a type for values in business rules.
        Returns:
        true if this concept is a value type.
      • setValueType

        void setValueType(boolean value)
        Sets the value type flag.
        Parameters:
        value - The value for the value type flag.
      • isProxy

        boolean isProxy()
        Tests if this concept is a proxy. A proxy is used to reference a concept that is missing from the vocabulary.
        Returns:
        true if this concept is a proxy.

© Copyright IBM Corp. 1987, 2017