-
public final class SessionEngineTimer-driven session engine. Collects HR data from a BiosignalProvider, buffers samples in a sliding window, and emits session frames with computed metrics.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSessionEngine.Companion
-
Constructor Summary
Constructors Constructor Description SessionEngine(BiosignalProvider provider, BehaviorProvider behaviorProvider)
-
Method Summary
Modifier and Type Method Description final UnitingestHsiMetrics(Map<String, Object> hsiMetrics)Ingest pre-computed HRV metrics from the runtime. final Unitstart(SessionConfig config, Function1<Map<String, Object>, Unit> callback)Start a new session. final Unitstop(String sessionId)Stop a running session. final Map<String, Object>getStatus()Get the status of the current session. -
-
Constructor Detail
-
SessionEngine
SessionEngine(BiosignalProvider provider, BehaviorProvider behaviorProvider)
-
-
Method Detail
-
ingestHsiMetrics
final Unit ingestHsiMetrics(Map<String, Object> hsiMetrics)
Ingest pre-computed HRV metrics from the runtime. These are artifact-filtered and authoritative — the session SDK does not compute HRV locally.
-
start
final Unit start(SessionConfig config, Function1<Map<String, Object>, Unit> callback)
Start a new session.
- Parameters:
config- Session configuration.callback- Called for each event map.
-
stop
final Unit stop(String sessionId)
Stop a running session.
- Parameters:
sessionId- The session ID to stop.
-
-
-
-