created some classes for knowledge representation

This commit is contained in:
Mateusz Szlachetka 2023-03-28 18:00:13 +02:00
parent 0a18d1a656
commit 3080d0baa6
2 changed files with 25 additions and 0 deletions

17
garbage_truck.py Normal file
View File

@ -0,0 +1,17 @@
class Garbage_tank:
def __init__(self, volume_capacity, mass_capacity):
self.vcapacity = volume_capacity #m^3
self.mcapacity = mass_capacity #kg
class Engine:
def __init__(self, power):
self.power = power #HP
class Garbage_truck:
def __init__(self, dump_location, fuel_capacity, start_pos):
self.dump_location = dump_location
self.tank = Garbage_tank(15, 18000)
self.engine = Engine(400)
self.fuel = fuel_capacity
self.pos = start_pos
self.houses = [] #lista domów do odwiedzenia

8
litter.py Normal file
View File

@ -0,0 +1,8 @@
class Litter:
types = ['PAPER', 'GLASS', 'PLASTIC', 'METAL', 'BIO', 'MUNICIPAL', 'ELECTRONICS']
def __init__(self, type, volume, mass):
self.type = type
self.volume = volume
self.mass = mass