-
Notifications
You must be signed in to change notification settings - Fork 1
/
Truck.py
47 lines (37 loc) · 960 Bytes
/
Truck.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
class Truck:
def __init__(self, id = "", orders="[]", origin="", stops="[]", destination=""):
self._id = id
self._orders = orders
self._origin = origin
self._stop = stops
self._destination = destination
@property
def id(self):
return self._id
@id.setter
def id(self, value):
self._id = value
@property
def orders(self):
return self._orders
@orders.setter
def orders(self, value):
self._orders = value
@property
def origin(self):
return self._origin
@origin.setter
def origin(self, value):
self._origin= value
@property
def stops(self):
return self._stops
@stops.setter
def stops(self, value):
self._stops = value
@property
def destination(self):
return self._destination
@destination.setter
def destination(self, value):
self._destination = value