22 lines
408 B
Python
22 lines
408 B
Python
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
|