summaryrefslogtreecommitdiffstats
path: root/Src/eclipse/.metadata/.plugins/org.eclipse.core.resources/.history/65/304bccca95f2001019c79f38f40e52ba
blob: 3cebf6d261c5d0658781c9caccdc09b74b351233 (plain) (blame)
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
import datetime
import gtk

class BaseStationInformation: 
    def __init__ (self):
        self.country = 'Nowhere'
        self.provider = 'Carry'
        self.arfcn = 0
        self.rxlev = 0
        self.neighbours = []
        self.discovery_time = datetime.datetime.now().strftime('%T')
        
    def get_list_model(self):
        return (self.provider, self.arfcn, self.rxlev, self.discovery_time)
    
    def get_neighbour_arfcn(self):
        pass
    
class BaseStationInformationList:
    def __init__(self):
        self._base_station_list = []
        
    def add_station(self, base_station):
        already_in_list = False
        for item in self._base_station_list:
            if item.arfcn == base_station.arfcn:
                
        self._base_station_list.append(base_station)
    
    def get_dot_code(self):
        pass
    
    def refill_store(self, store):
        store.clear()
        for item in self._base_station_list:
            store.append(item.get_list_model())