fuzzy_dl_owl2.fuzzydl.individual.representative_individual

A concrete proxy that models a collection of individuals satisfying a specific fuzzy condition relative to a threshold by associating a feature with a triangular fuzzy number.

Description

Acting as a bridge between a concrete entity and an abstract group defined by fuzzy logic constraints, the implementation encapsulates the logic required to define sets of entities based on feature evaluation. By storing a feature name, a classification type, and a TriangularFuzzyNumber, the software allows for the precise quantification of partial truths and uncertainty in how an individual satisfies a concept. The structure links a specific CreatedIndividual to these broader criteria, enabling the system to determine membership degrees through comparisons such as greater than or less than. Accessor methods expose the underlying data necessary for these evaluations, ensuring that the fuzzy logic framework can consistently handle degrees of satisfaction without directly manipulating internal state.

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,
f: fuzzy_dl_owl2.fuzzydl.concept.concrete.fuzzy_number.triangular_fuzzy_number.TriangularFuzzyNumber,
ind: fuzzy_dl_owl2.fuzzydl.individual.created_individual.CreatedIndividual,
)[source]

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[source]

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:

str

get_fuzzy_number() fuzzy_dl_owl2.fuzzydl.concept.concrete.fuzzy_number.triangular_fuzzy_number.TriangularFuzzyNumber[source]

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[source]

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[source]

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
ind: fuzzy_dl_owl2.fuzzydl.individual.created_individual.CreatedIndividual
type: fuzzy_dl_owl2.fuzzydl.util.constants.RepresentativeIndividualType