jacopy.research.StructureKind¶
- class jacopy.research.StructureKind¶
Bases:
objectHow
assemble_engine()treats one type of structure.Subclass and override
accepts()andkey()(required);host_engine(),host_report()andmember_report()have generic defaults that use only the provider protocol.- __init__()¶
Methods
__init__()accepts(structure)host_engine(structure, registry)The base engine when
structureis the first structure: by default the tangent (Cartan) engine; the structure's own rules (provider protocol) are then added and reported byassemble_engine(seehost_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
Truewhenhost_engine()already registers the host's own rules;False(default) — the host contributesengine_ruleslike every other structure, each rule reportedshort label of the kind (reports, error messages)
- host_includes_rules: bool = False¶
Truewhenhost_engine()already registers the host’s own rules;False(default) — the host contributesengine_ruleslike 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
structureis the first structure: by default the tangent (Cartan) engine; the structure’s own rules (provider protocol) are then added and reported byassemble_engine(seehost_includes_rules).- Return type: