This repository has been archived by the owner on May 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbin.py
47 lines (43 loc) · 1.44 KB
/
bin.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 definition of bin object and other related code
class Bin:
company = ""
address = ""
city = ""
postalCode = ""
coordinate = ""
name =""
def __init__(self, company, address, city, postalCode, coordinate, name):
self.company = company
self.address = address + self.city + "British Columbia, Canada"
self.city = city
self.postalCode = postalCode
self.coordinate = coordinate
self.name = name
def __str__(self):
return "Data in this bin: \n" + "Company: " + self.company + "\nAddress: " + self.address + "\nCity: " + self.city + "\nName: " + self.name + "\nCoordinates: " + self.coordinate
def getCompany(self):
return self.company
def getAddress(self):
return self.address
def getCity(self):
return self.city
def getPostalCode(self):
return self.postalscode
def getCoordinate(self):
return self.coordinate
def getName(self):
return self.names
def getContents(self):
return self.name + " " + self.address + " " + self.postalCode
def setCompany(company):
self.company = companys
def setAddress(address):
self.address = address
def setCity(city):
self.city = city
def setPostalCode(postalcode):
self.postalcode = postalcode
def setCoordinate(coordinatee):
self.coordinate = coordinate
def setName(name):
self.name = name