1:/**
   2: * The Message classes bundles the TalkerListener speaking and what they say.
   3: * This allows the recipient to find the place at which the message was generated.
   4: * <br>Observer Design Pattern -- "Gossip" example for COM1204 Summer 2003.
   5: *
   6: * @author Bob Futrelle
   7: * @version 0.1, 28 June 2003
   8: *
   9: */
  10: public class Message {
  11:    
  12:    public TalkerListener talkerListener;
  13:    public String whatTalkerSaid;
  14:    
  15:    public Message(TalkerListener talkerListener, String whatTalkerSaid){
  16:        this.talkerListener = talkerListener;
  17:        this.whatTalkerSaid = whatTalkerSaid;
  18:    }
  19:    
  20: } // class Message