|
From: Christophe Prud'h. <pru...@us...> - 2000-08-17 03:43:34
|
On Wed, 16 Aug 2000, you wrote: > Christophe Prud'homme wrote: > > everything in the subject > > > > in the past I implemented the Observer Pattern it was ok and worked well > > but the design in corelinux is way more flexible > > I just applied it for iterative process control(iterative solvers) > > Now plugging a new observer or creating a new event is really cool :) > > > > C. > > I'm curious as to what identifier you use for the events. Numeric? > Something else? Numeric, I don't think I need something more involved but the mementos carry information about the iteration state - started - updated - finished and I have two observers a verbose one which writes iteration info when iteration is updated a timer one which starts a timer when iteration starts and write the total time when the iteration stops -- Christophe Prud'homme OOA and OOD for Linux CoreLinux -- http://corelinux.sourceforge.net Finite Element Method Codes KFem -- http://kfem.sourceforge.net |