FeatureChainTemplate

Labs

class FeatureChainTemplate

Description

A feature chain a.b: the template form of naming a feature by joining two or more features, each a feature of the previous one’s type.

Not an ExpressionTemplate: a chain names a feature rather than computing a value, so it is accepted where the textual syntax accepts a feature chain in place of a feature – the :>/subsets and :>>/redefines clauses – where instantiating it creates the anonymous chained feature the core owns for the relationship. In a value position (equals=) it stands for dot() of its features: the chain read as an expression, a.b.c. Equality and hashing use the chained features’ element_id values, in order, for the reason ReferenceTemplate gives.

Inheritance:

Members defined in FeatureChainTemplate (3 members)

features

RW

__hash__

Hash the chained features’ identities, in order.

element_ids

The chained features’ identities, in chain order.

Attributes

features: tuple[syside.Feature, ...] = None

Methods

__hash__() → int

Hash the chained features’ identities, in order.

element_ids() → tuple[uuid.UUID, ...]

The chained features’ identities, in chain order.

Used by