SI_InteligentnyWozekWidlowy/data/Order.py
2022-04-16 14:55:25 +02:00

14 lines
285 B
Python

from itertools import count
from data.Item import Item
class Order:
id_counter = count(start=0)
def __init__(self, time: int, items: [Item], value: int):
self.id = next(self.id_counter)
self.time = time
self.items = items
self.value = value