Hi Doug: >From dougo@ccs.neu.edu Fri Aug 1 16:33:24 1997 >From: Doug Orleans >To: Karl Lieberherr >Cc: dem@ccs.neu.edu >Subject: Re: edge free strategies > >Karl Lieberherr writes: > > Edge-free strategies can indeed be very useful, especially > > with the adaptive methods which Doug is implementing now. > > > > You can define a strategy with 10 nodes and then do a > > > > before * (@ some code @) > > > > and now all 10 classes will have a method with the interface > > of the adaptive method and identical bodies. > > > > So edge-free strategies are useful to distribute common methods > > to a bunch of classes. > >I prefer this method: > > * { > (@ void f() { /* some code */ } @) > } > >which will attach f to all classes. Or you can specify a set of >classes in place of "*". > >--Doug > This is a good method. I conclude that this means for Demeter/Java that each strategy must contain at least one edge. -- Karl