Advertisement
Guest User

Untitled

a guest
Apr 19th, 2015
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1.  
  2. class Element_Longitudinal(reserva.Reserva):
  3.     def __init__(self, identificador, longitud, llista_reserva, llista_ocupacions):
  4.         reserva.Reserva.__init__(self,llista_reserva,llista_ocupacions)
  5.         self.identificador = identificador
  6.         self.longitud = longitud
  7.  
  8.     def reservar(self,nou_temps,nova_ocupacio):
  9.  
  10.  
  11.     def __add(self, new_interval):
  12.         A = self.intersection(new_interval)
  13.         B = new_interval.intersection(self.opened_complement())
  14.         C = self.intersection(new_interval.opened_complement())
  15.         return (A.union(B)).union(C)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement