refactor: move some classes and functions to separate files
This commit is contained in:
21
task6/entities.py
Normal file
21
task6/entities.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from dataclasses import dataclass
|
||||
from typing import Literal
|
||||
|
||||
|
||||
@dataclass
|
||||
class Request:
|
||||
request_time: int
|
||||
plane: Plane
|
||||
|
||||
@dataclass
|
||||
class ProcessedRequest(Request):
|
||||
start_process_time: int
|
||||
process_time: int
|
||||
type_: Literal["landing", "launching"]
|
||||
|
||||
class Plane:
|
||||
__id_increment = 0
|
||||
|
||||
def __init__(self) -> None:
|
||||
self.id = self.__id_increment
|
||||
Plane.__id_increment += 1
|
||||
Reference in New Issue
Block a user