some class

This commit is contained in:
sidya82 2014-12-05 15:54:04 +01:00
parent d71d4f3309
commit 21e97f5362
18 changed files with 147 additions and 13 deletions

View File

@ -2,3 +2,5 @@ gestionParking
==============
Projet python l3 Miashs : gestion des places du parking DreamPark

6
src/Launchme.py Normal file
View 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
View 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
View 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
View File

@ -0,0 +1,7 @@
__author__ = 'sidya'
from nose.tools import assert_equal
class TestAcces:
pass

View File

@ -0,0 +1,5 @@
__author__ = 'sidya'
class TestTeleporteur :
pass

17
src/m/Parking.py Normal file
View 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
View 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

View File

@ -0,0 +1,4 @@
__author__ = 'sidya'
class TestParking :
pass

View File

@ -1,5 +1,5 @@
__author__ = 'sidya'
class Camera:
class TestPlace :
pass

View File

@ -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
View 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
View File

@ -0,0 +1,7 @@
__author__ = 'sidya'
class Camera:
def __init__(self):
pass

8
src/v/Panneau.py Normal file
View 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
View File

@ -0,0 +1 @@
__author__ = 'sidya'

14
src/v/test/TestCamera.py Normal file
View 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)

View File

@ -0,0 +1,4 @@
__author__ = 'sidya'
class TestPanneau:
pass

1
src/v/test/__init__.py Normal file
View File

@ -0,0 +1 @@
__author__ = 'sidya'