9 def __init__( self, controller ):
13 self._controller = controller
14 self._id = self.__GenerateID() # A unique ID for this class of object
19 def getController(self):
21 :returns: Controller -- This model's controller.
23 return self._controller
25 def setController(self, controller):
27 Sets the controller of this model.
29 :param controller: Controller -- The controller of the model.
32 self._controller = controller
34 def notifyChange( self, what="" ) :
36 Notifies the controller that this model's data has changed.
38 if self._controller != None:
39 self._controller.notify(self, what)
41 def updateTimeStamps (self, modifiesList):
42 raise NotImplementedError