2024-05-25 20:30:11 +02:00
|
|
|
typelist = ["paper", "metals_and_plastics", "mixed", "bio_waste", "glass"]
|
2024-03-25 11:21:23 +01:00
|
|
|
|
|
|
|
|
|
|
|
class Trash:
|
|
|
|
|
2024-05-13 15:05:11 +02:00
|
|
|
def getTreetype(self):
|
2024-05-25 20:30:11 +02:00
|
|
|
return self.treetype
|
2024-05-13 15:05:11 +02:00
|
|
|
|
|
|
|
def setTreetype(self, treetype):
|
2024-05-25 20:30:11 +02:00
|
|
|
self.treetype = id
|
2024-05-13 15:05:11 +02:00
|
|
|
return self
|
|
|
|
|
2024-03-25 14:57:24 +01:00
|
|
|
def getTtype(self):
|
|
|
|
return self.ttype
|
|
|
|
|
|
|
|
def setTtype(self, ttype):
|
|
|
|
self.ttype = ttype
|
|
|
|
return self
|
|
|
|
|
2024-03-25 11:21:23 +01:00
|
|
|
def getWaga(self):
|
|
|
|
return self.waga
|
|
|
|
|
|
|
|
def setWaga(self, waga):
|
|
|
|
self.waga = waga
|
|
|
|
return self
|
|
|
|
|
|
|
|
def getImage(self):
|
|
|
|
return self.image
|
|
|
|
|
|
|
|
def setImage(self, image):
|
|
|
|
self.image = image
|
|
|
|
return self
|
|
|
|
|
|
|
|
|
|
|
|
class Papier(Trash):
|
|
|
|
def __init__(self):
|
2024-05-25 20:30:11 +02:00
|
|
|
self.treetype = 1
|
2024-03-25 14:57:24 +01:00
|
|
|
self.ttype = "Papier"
|
2024-03-25 11:21:23 +01:00
|
|
|
self.waga = 2
|
|
|
|
self.image = None
|
|
|
|
|
|
|
|
|
|
|
|
class MetalPlastik(Trash):
|
|
|
|
def __init__(self):
|
2024-05-25 20:30:11 +02:00
|
|
|
self.treetype = 2
|
2024-03-25 14:57:24 +01:00
|
|
|
self.ttype = "MetalPlastik"
|
2024-03-25 11:21:23 +01:00
|
|
|
self.waga = 3
|
|
|
|
self.image = None
|
|
|
|
|
|
|
|
|
|
|
|
class Mixed(Trash):
|
|
|
|
def __init__(self):
|
2024-05-25 20:30:11 +02:00
|
|
|
self.treetype = 4
|
2024-03-25 14:57:24 +01:00
|
|
|
self.ttype = "Mixed"
|
2024-03-25 11:21:23 +01:00
|
|
|
self.waga = 1
|
|
|
|
self.image = None
|
|
|
|
|
|
|
|
|
|
|
|
class Bio(Trash):
|
|
|
|
def __init__(self):
|
2024-05-25 20:30:11 +02:00
|
|
|
self.treetype = 0
|
2024-03-25 14:57:24 +01:00
|
|
|
self.ttype = "Bio"
|
2024-03-25 11:21:23 +01:00
|
|
|
self.waga = 2
|
|
|
|
self.image = None
|
|
|
|
|
|
|
|
|
|
|
|
class Szklo(Trash):
|
|
|
|
def __init__(self):
|
2024-05-25 20:30:11 +02:00
|
|
|
self.treetype = 3
|
2024-03-25 14:57:24 +01:00
|
|
|
self.ttype = "Szklo"
|
2024-03-25 11:21:23 +01:00
|
|
|
self.waga = 5
|
|
|
|
self.image = None
|