This repository has been archived on 2021-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
L3GestionParking/src/c/Teleporteur.py

22 lines
493 B
Python
Raw Normal View History

2015-01-13 23:39:12 +00:00
from src.m.Parking import Placement
2015-01-12 15:06:44 +00:00
2014-12-05 14:54:04 +00:00
__author__ = 'sidya'
2015-01-12 15:06:44 +00:00
class Teleporteur:
2015-01-13 23:39:12 +00:00
@staticmethod
def teleporterVoiture(voiture, place):
2015-02-04 13:20:39 +00:00
p = Placement(None,voiture, place)
place.prendre()
2015-01-12 15:06:44 +00:00
return p.id
2014-12-05 14:54:04 +00:00
2015-01-13 23:39:12 +00:00
@staticmethod
2015-02-04 13:20:39 +00:00
def teleporterVoitureSuperAbonne(voiture, parking):
place = parking.addPlaceSuperAbo()
p = Placement(None, voiture, place)
return p.id
2015-01-12 15:06:44 +00:00
2015-01-13 23:39:12 +00:00
@staticmethod
def teleporterVersSortie(placement):
2015-02-04 13:20:39 +00:00
placement.end()