Basic HTML version of Foils prepared Sept 23 97

Foil 35 Observer/Observable Model-IV

From Tutorial on Scivis Java Visualization System Rome Lab CIV Review, NAVO Miss. Tutorial -- Sept 24-25 97. by Byeongseob Ki, Scott KLasky


1 public class svserver extends Observable {
2 ..........
3 public void receiveMessage(EventMessage msg) {
4 setChanged(); // sets a flag to indicate that an observable
5 // change has occurred
6 notifyObservers(msg); // notifies all observers
7 }
8 .............
9 Code segment of class svserver(Observable)

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Tue Sep 23 1997