Package medite :: Package Donnees :: Module oeuvre
[hide private]
[frames] | no frames]

Source Code for Module medite.Donnees.oeuvre

 1  # -*- coding: iso-8859-1 -*- 
 2  # Copyright 20003 - 2008: Julien Bourdaillet (julien.bourdaillet@lip6.fr), Jean-Gabriel Ganascia (jean-gabriel.ganascia@lip6.fr) 
 3  # This file is part of MEDITE. 
 4  # 
 5  #    MEDITE is free software; you can redistribute it and/or modify 
 6  #    it under the terms of the GNU General Public License as published by 
 7  #    the Free Software Foundation; either version 2 of the License, or 
 8  #    (at your option) any later version. 
 9  # 
10  #    MEDITE is distributed in the hope that it will be useful, 
11  #    but WITHOUT ANY WARRANTY; without even the implied warranty of 
12  #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
13  #    GNU General Public License for more details. 
14  # 
15  #    You should have received a copy of the GNU General Public License 
16  #    along with Foobar; if not, write to the Free Software 
17  #    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
18  #---------------------------------------------------------------------------- 
19  # Nom:          oeuvre.py 
20  # Objet:        Classe qui regroupe les donnees d'une oeuvre 
21  #---------------------------------------------------------------------------- 
22   
23 -class Oeuvre:
24 25 # Constucteur de la classe
26 - def __init__(self, pTitre, pEdition, pPublication, pNomDG):
27 self.__titre = pTitre 28 self.__edition = pEdition 29 self.__publication = pPublication 30 self.__nomDG = pNomDG
31 32 # Methodes d'acces aux attributs prives
33 - def getTitre(self):
34 return self.__titre
35
36 - def getEdition(self):
37 return self.__edition
38
39 - def getPublication(self):
40 return self.__publication
41
42 - def getNomDG(self):
43 return self.__nomDG
44 45 # def getArbre(self): 46 # return self.__arbre 47 # 48 # def addArbre(self, pArbre): 49 # self.__arbre = pArbre 50 51 # Methode de mise a jour d'une oeuvre 52 # Les mises a jour ne concernent que l'edition et la publication
53 - def modifyOeuvre(self, pEdition, pPublication):
54 self.__edition=pEdition 55 self.__publication=pPublication
56