summaryrefslogtreecommitdiffstats
path: root/Src/PyCatcher/src/pyCatcherModel.py
diff options
context:
space:
mode:
authorTom2011-08-16 13:03:35 +0200
committerTom2011-08-16 13:03:35 +0200
commit30381dbf4bd45b62a8a11100ea60c121a966a73a (patch)
treebdddcc9c7c3c5783b5a7982b35b95c2c5a73f5ba /Src/PyCatcher/src/pyCatcherModel.py
parentInitial Commit (diff)
downloadimsi-catcher-detection-30381dbf4bd45b62a8a11100ea60c121a966a73a.tar.gz
imsi-catcher-detection-30381dbf4bd45b62a8a11100ea60c121a966a73a.tar.xz
imsi-catcher-detection-30381dbf4bd45b62a8a11100ea60c121a966a73a.zip
need to clean up git
Diffstat (limited to 'Src/PyCatcher/src/pyCatcherModel.py')
-rw-r--r--Src/PyCatcher/src/pyCatcherModel.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/Src/PyCatcher/src/pyCatcherModel.py b/Src/PyCatcher/src/pyCatcherModel.py
new file mode 100644
index 0000000..7ece9b6
--- /dev/null
+++ b/Src/PyCatcher/src/pyCatcherModel.py
@@ -0,0 +1,35 @@
+class BaseStationInformation:
+ def __init__ (self):
+ self.arcfn = 0
+ self.bsic = 0
+ self.rxlev = 0
+ self.s1 = []
+ self.s2 = []
+ self.s2bis = []
+ self.s2ter = []
+ self.s3 = []
+ self.s4 = []
+ self.neighbours = []
+
+ def parse_file(self, fileobject):
+ self.arcfn = fileobject.readline()
+ self.bsic = fileobject.readline()
+ self.rxlev = fileobject.readline()
+ self.s1 = fileobject.readline().split(' ')
+ self.s2 = fileobject.readline().split(' ')
+ self.s2bis = fileobject.readline().split(' ')
+ self.s2ter = fileobject.readline().split(' ')
+ self.s3 = fileobject.readline().split(' ')
+ self.s4 = fileobject.readline().split(' ')
+ return self
+
+ def __str__ (self):
+ return 'foo' + self.arcfn
+
+class BaseStationInformationList:
+ def __init__(self):
+ self.base_station_list
+
+ def add_station(self):
+ pass
+ \ No newline at end of file