fuzzy_dl_owl2.fuzzydl.individual.representative_individual

Defines a proxy entity that represents a group of individuals satisfying a specific fuzzy condition relative to a feature threshold.

Description

The implementation encapsulates the relationship between a concrete entity and a fuzzy constraint defined by a triangular fuzzy number applied to a specific feature. By storing a classification type alongside the fuzzy value and the referenced individual, the logic enables the representation of partial truths and degrees of membership within a fuzzy description logic framework. Accessor methods are provided to retrieve the feature name, the fuzzy number quantifying the satisfaction degree, and the underlying individual, allowing other components of the system to query these properties without modifying the internal state. This structure effectively models how specific entities satisfy abstract concepts under uncertainty, serving as a foundational building block for reasoning with fuzzy data types.

Classes

RepresentativeIndividual

This class serves as a concrete proxy for a collection of individuals that satisfy a specific fuzzy condition relative to a threshold. It encapsulates the logic required to define a set of entities based on a TriangularFuzzyNumber applied to a specific feature, determining membership through a comparison type (such as greater than or less than). By associating a specific CreatedIndividual with this fuzzy constraint, the object models the relationship between an individual and the abstract group it represents or belongs to. This structure is primarily used to represent degrees of satisfaction within a fuzzy logic framework, enabling the system to handle uncertainty and partial truths in feature evaluation.

Module Contents

UML Class Diagram for RepresentativeIndividual

UML Class Diagram for RepresentativeIndividual

class RepresentativeIndividual(
c_type: fuzzy_dl_owl2.fuzzydl.util.constants.RepresentativeIndividualType,
f_name: str | None,
f: fuzzy_dl_owl2.fuzzydl.concept.concrete.fuzzy_number.triangular_fuzzy_number.TriangularFuzzyNumber,
ind: fuzzy_dl_owl2.fuzzydl.individual.created_individual.CreatedIndividual,
)

This class serves as a concrete proxy for a collection of individuals that satisfy a specific fuzzy condition relative to a threshold. It encapsulates the logic required to define a set of entities based on a TriangularFuzzyNumber applied to a specific feature, determining membership through a comparison type (such as greater than or less than). By associating a specific CreatedIndividual with this fuzzy constraint, the object models the relationship between an individual and the abstract group it represents or belongs to. This structure is primarily used to represent degrees of satisfaction within a fuzzy logic framework, enabling the system to handle uncertainty and partial truths in feature evaluation.

Parameters:
  • f_name (str) – The name of the feature for which this individual acts as a filler.

  • type (RepresentativeIndividualType) – The classification of the representative individual, defining the specific criteria or nature of the set it represents.

  • f (TriangularFuzzyNumber) – Fuzzy number representing the degree of satisfaction of the concept by the individual.

  • ind (CreatedIndividual) – The concrete individual entity referenced by this representative instance.

get_feature_name() str | None

Retrieves the name of the feature represented by this instance. This method serves as a simple getter for the internal f_name attribute, returning its current value. It performs no computation or modification of the object’s state.

Returns:

The name of the feature.

Return type:

Optional[str]

get_fuzzy_number() fuzzy_dl_owl2.fuzzydl.concept.concrete.fuzzy_number.triangular_fuzzy_number.TriangularFuzzyNumber

Retrieves the triangular fuzzy number associated with this representative individual. This method serves as a direct accessor for the internal attribute representing the individual’s value, returning the specific TriangularFuzzyNumber instance stored within the object. Because it returns a reference to the internal object rather than a copy, any modifications made to the returned fuzzy number will directly alter the state of this individual. If the internal attribute has not been initialized prior to calling this method, an AttributeError will be raised.

Returns:

The TriangularFuzzyNumber instance stored in the object.

Return type:

TriangularFuzzyNumber

get_individual() fuzzy_dl_owl2.fuzzydl.individual.created_individual.CreatedIndividual

Retrieves the CreatedIndividual instance currently associated with this RepresentativeIndividual. This method serves as an accessor for the internal ind attribute, returning the stored object directly. Since it returns a reference to the internal state, any modifications made to the returned object will be reflected in the RepresentativeIndividual instance.

Returns:

The CreatedIndividual instance associated with this object.

Return type:

CreatedIndividual

get_type() fuzzy_dl_owl2.fuzzydl.util.constants.RepresentativeIndividualType

Returns the classification type associated with this representative individual instance. This method serves as a getter for the internal type attribute, providing access to the specific RepresentativeIndividualType that defines the individual’s category. The operation is read-only and does not modify the state of the object.

Returns:

The type of the representative individual.

Return type:

RepresentativeIndividualType

f: fuzzy_dl_owl2.fuzzydl.concept.concrete.fuzzy_number.triangular_fuzzy_number.TriangularFuzzyNumber
f_name: str | None
ind: fuzzy_dl_owl2.fuzzydl.individual.created_individual.CreatedIndividual
type: fuzzy_dl_owl2.fuzzydl.util.constants.RepresentativeIndividualType