Kairo-Jinkendo/backend/steering/methods/registrations/generic_operating.py

30 lines
1.1 KiB
Python
Raw Permalink Normal View History

"""Built-in method: generic_operating — AP2.4."""
from __future__ import annotations
from steering.graph.profiles import LIGHT
from steering.lifecycle.slot_maps import GENERIC_OPERATING_SLOTS, slot_map_to_tuple
from steering.lifecycle.states import STANDARD_LIFECYCLE_STEPS
from steering.methods.registrations._helpers import ELEM_NEXT, SLICES_GENERIC
from steering.methods.registry import MethodDefinition, get_method, register_method
def register() -> None:
if get_method("generic_operating"):
return
register_method(
MethodDefinition(
key="generic_operating",
version="0.1.0",
label="Allgemeine Steuerung",
description="Standard-Lifecycle ohne methodenspezifische Spezialisierung",
default_lifecycle_steps=STANDARD_LIFECYCLE_STEPS,
next_action_strategy_key="default",
data_slices=SLICES_GENERIC,
compatible_archetype_keys="*",
steering_elements=ELEM_NEXT,
graph_profile=LIGHT,
slot_map=slot_map_to_tuple(GENERIC_OPERATING_SLOTS),
)
)