some class
This commit is contained in:
parent
d71d4f3309
commit
21e97f5362
@ -2,3 +2,5 @@ gestionParking
|
||||
==============
|
||||
|
||||
Projet python l3 Miashs : gestion des places du parking DreamPark
|
||||
|
||||
|
||||
|
6
src/Launchme.py
Normal file
6
src/Launchme.py
Normal file
@ -0,0 +1,6 @@
|
||||
from src.c.Acces import Acces
|
||||
|
||||
__author__ = 'sidya'
|
||||
|
||||
if __name__ == "__main__":
|
||||
acces = Acces()
|
25
src/c/Acces.py
Normal file
25
src/c/Acces.py
Normal file
@ -0,0 +1,25 @@
|
||||
from src.v import Panneau, Borne, Camera
|
||||
from src.c import Teleporteur
|
||||
from src.m import Parking, Place
|
||||
|
||||
|
||||
__author__ = 'sidya'
|
||||
|
||||
|
||||
class Acces:
|
||||
def __init__(self):
|
||||
self.__borne = Borne()
|
||||
self.__panneau = Panneau()
|
||||
self.__parkings = {}
|
||||
self.__camera = Camera()
|
||||
self.__teleporteur = Teleporteur()
|
||||
self.__clients = {}
|
||||
|
||||
def actionnerCamera(self, client):
|
||||
pass
|
||||
|
||||
def actionnerPanneau(self):
|
||||
pass
|
||||
|
||||
def lancerProcedureImmatr(self, voiture):
|
||||
pass
|
12
src/c/Teleporteur.py
Normal file
12
src/c/Teleporteur.py
Normal file
@ -0,0 +1,12 @@
|
||||
__author__ = 'sidya'
|
||||
|
||||
|
||||
class Teleporteur :
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def teleporterVoiture(self, voiture, place):
|
||||
pass
|
||||
|
||||
def teleporterVoirureSuperAbonne(self, voiture):
|
||||
pass
|
7
src/c/test/TestAcces.py
Normal file
7
src/c/test/TestAcces.py
Normal file
@ -0,0 +1,7 @@
|
||||
__author__ = 'sidya'
|
||||
|
||||
from nose.tools import assert_equal
|
||||
|
||||
|
||||
class TestAcces:
|
||||
pass
|
5
src/c/test/TestTeleporteur.py
Normal file
5
src/c/test/TestTeleporteur.py
Normal file
@ -0,0 +1,5 @@
|
||||
__author__ = 'sidya'
|
||||
|
||||
|
||||
class TestTeleporteur :
|
||||
pass
|
17
src/m/Parking.py
Normal file
17
src/m/Parking.py
Normal file
@ -0,0 +1,17 @@
|
||||
__author__ = 'sidya'
|
||||
|
||||
|
||||
class Parking :
|
||||
def __init__(self, placesParNiv, nbNiv):
|
||||
self.__nbPlacesParNiveau = placesParNiv
|
||||
self.__prix = 10
|
||||
self.__nbNiveaux = nbNiv
|
||||
|
||||
def recherchePlace(self,voiture):
|
||||
pass
|
||||
|
||||
def nbPlacesLibresParNiveau(self, niveau):
|
||||
pass
|
||||
|
||||
def addAbonnement(self, Abonnement):
|
||||
pass
|
13
src/m/Place.py
Normal file
13
src/m/Place.py
Normal file
@ -0,0 +1,13 @@
|
||||
__author__ = 'sidya'
|
||||
|
||||
|
||||
class Place :
|
||||
def __init__(self,numero,niveau,longueur,hauteur):
|
||||
self.__numero = numero
|
||||
self.__niveau = niveau
|
||||
self.__longueur = longueur
|
||||
self.__estLibre = True
|
||||
self.__hauteur = hauteur
|
||||
|
||||
def addPlacement(self, placement):
|
||||
pass
|
4
src/m/test/TestParking.py
Normal file
4
src/m/test/TestParking.py
Normal file
@ -0,0 +1,4 @@
|
||||
__author__ = 'sidya'
|
||||
|
||||
class TestParking :
|
||||
pass
|
@ -1,5 +1,5 @@
|
||||
__author__ = 'sidya'
|
||||
|
||||
|
||||
class Camera:
|
||||
class TestPlace :
|
||||
pass
|
@ -1,12 +0,0 @@
|
||||
from src.m.camera import Camera
|
||||
|
||||
__author__ = 'sidya'
|
||||
|
||||
import nose
|
||||
class testCamera :
|
||||
def run(self):
|
||||
pass
|
||||
|
||||
def testTailleMax(self):
|
||||
c = Camera()
|
||||
assert (c.capturerHauteur()>1.5)
|
20
src/v/Borne.py
Normal file
20
src/v/Borne.py
Normal file
@ -0,0 +1,20 @@
|
||||
__author__ = 'sidya'
|
||||
|
||||
class Borne:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def delivrerTicket(self, client):
|
||||
pass
|
||||
|
||||
def proposerService(self):
|
||||
pass
|
||||
|
||||
def proposerAbonnement(self):
|
||||
pass
|
||||
|
||||
def recupererInfosCarte(self):
|
||||
pass
|
||||
|
||||
def proposerTypePaiement(self):
|
||||
pass
|
7
src/v/Camera.py
Normal file
7
src/v/Camera.py
Normal file
@ -0,0 +1,7 @@
|
||||
__author__ = 'sidya'
|
||||
|
||||
|
||||
class Camera:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
8
src/v/Panneau.py
Normal file
8
src/v/Panneau.py
Normal file
@ -0,0 +1,8 @@
|
||||
__author__ = 'sidya'
|
||||
|
||||
class Panneau:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def afficherNbPlaceDisponible(self, parking):
|
||||
pass
|
1
src/v/test/TestBorne.py
Normal file
1
src/v/test/TestBorne.py
Normal file
@ -0,0 +1 @@
|
||||
__author__ = 'sidya'
|
14
src/v/test/TestCamera.py
Normal file
14
src/v/test/TestCamera.py
Normal file
@ -0,0 +1,14 @@
|
||||
from src.m.camera import Camera
|
||||
|
||||
__author__ = 'sidya'
|
||||
|
||||
from nose.tools import assert_equal
|
||||
from nose.tools import assert_not_equal
|
||||
from nose.tools import assert_raises
|
||||
from nose.tools import raises
|
||||
|
||||
|
||||
class testCamera:
|
||||
def test_TailleMax(self):
|
||||
c = Camera()
|
||||
assert_equal(c.capturerHauteur()<2.5)
|
4
src/v/test/TestPanneau.py
Normal file
4
src/v/test/TestPanneau.py
Normal file
@ -0,0 +1,4 @@
|
||||
__author__ = 'sidya'
|
||||
|
||||
class TestPanneau:
|
||||
pass
|
1
src/v/test/__init__.py
Normal file
1
src/v/test/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
__author__ = 'sidya'
|
Reference in New Issue
Block a user