Files
opendan/src/aios_kernel/environment.py
T

22 lines
515 B
Python
Raw Normal View History

# basic environment class
# we have some built-in environment: Calender(include timer),Home(connect to IoT device in your home), ,KnwoledgeBase,FileSystem,
from abc import ABC, abstractmethod
from typing import Callable
class EnvironmentEvent(ABC):
2023-08-20 22:53:35 -07:00
@abstractmethod
def display(self) -> str:
pass
class Environment:
2023-08-20 22:53:35 -07:00
def __init__(self) -> None:
pass
def get_id(self) -> str:
pass
def attach_event_handler(self,event_id:str,handler:Callable) -> None:
pass