# -*- coding: iso-8859-1 -*- # Copyright 20003 - 2008: Julien Bourdaillet (julien.bourdaillet@lip6.fr), Jean-Gabriel Ganascia (jean-gabriel.ganascia@lip6.fr) # This file is part of MEDITE. # # MEDITE is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # MEDITE is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Foobar; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #---------------------------------------------------------------------------- # Nom: oeuvre.py # Objet: Classe qui regroupe les donnees d'une oeuvre #---------------------------------------------------------------------------- class Oeuvre: # Constucteur de la classe def __init__(self, pTitre, pEdition, pPublication, pNomDG): self.__titre = pTitre self.__edition = pEdition self.__publication = pPublication self.__nomDG = pNomDG # Methodes d'acces aux attributs prives def getTitre(self): return self.__titre def getEdition(self): return self.__edition def getPublication(self): return self.__publication def getNomDG(self): return self.__nomDG # def getArbre(self): # return self.__arbre # # def addArbre(self, pArbre): # self.__arbre = pArbre # Methode de mise a jour d'une oeuvre # Les mises a jour ne concernent que l'edition et la publication def modifyOeuvre(self, pEdition, pPublication): self.__edition=pEdition self.__publication=pPublication