File size: 450 Bytes
9fb722e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from __future__ import annotations

from typing import Any

from hearthnet.node import HearthNode


class HearthNetController:
    def __init__(self, node: HearthNode) -> None:
        self.node = node

    def snapshot(self) -> dict[str, Any]:
        return self.node.snapshot()

    def apply_emergency_probe(self, results: dict[str, bool]) -> dict[str, Any]:
        self.node.detector.apply_probe_results(results)
        return self.snapshot()