jacopy.research.StructureKind

class jacopy.research.StructureKind

Bases: object

How assemble_engine() treats one type of structure.

Subclass and override accepts() and key() (required); host_engine(), host_report() and member_report() have generic defaults that use only the provider protocol.

__init__()

Methods

__init__()

accepts(structure)

host_engine(structure, registry)

The base engine when structure is the first structure: by default the tangent (Cartan) engine; the structure's own rules (provider protocol) are then added and reported by assemble_engine (see host_includes_rules).

host_report(structure)

key(structure)

The structure's tree key — what owner_key(node) returns for the nodes it owns; distinct structures need distinct keys.

member_report(structure)

Attributes

host_includes_rules

True when host_engine() already registers the host's own rules; False (default) — the host contributes engine_rules like every other structure, each rule reported

name

short label of the kind (reports, error messages)

name: str = 'structure'

short label of the kind (reports, error messages)

host_includes_rules: bool = False

True when host_engine() already registers the host’s own rules; False (default) — the host contributes engine_rules like every other structure, each rule reported

key(structure)

The structure’s tree key — what owner_key(node) returns for the nodes it owns; distinct structures need distinct keys.

host_engine(structure, registry)

The base engine when structure is the first structure: by default the tangent (Cartan) engine; the structure’s own rules (provider protocol) are then added and reported by assemble_engine (see host_includes_rules).

Return type:

ExpansionEngine