G I M N R S T W

G

Gossip - class Gossip.
Observer Design Pattern -- "Gossip" example for COM1204 Summer 2003.
Gossip() - Constructor for class Gossip
 

I

iCanHearThere(TalkerListener) - Method in class Space
Allows a TalkerListener to be placed on the registered listeners list.

M

main(String[]) - Static method in class Gossip
 
Message - class Message.
The Message classes bundles the TalkerListener speaking and what they say.
Message(TalkerListener, String) - Constructor for class Message
 

N

name - Variable in class Space
 
name - Variable in class TalkerListener
 
notifyMe(Message) - Method in class TalkerListener
When a space that the TalkerListener has registered with receives a message, it notifies the TalkerListener using this method.
notifySpace(Message) - Method in class Space
When a TalkerListener says something, its local space is informed.

R

registeredListeners - Variable in class Space
 

S

says(String) - Method in class TalkerListener
When the TalkerListener speaks, the local space is "notified".
Space - class Space.
The Space class where messages are sent and which notifies registered listeners.
Space(String) - Constructor for class Space
 

T

talkerListener - Variable in class Message
 
TalkerListener - class TalkerListener.
The TalkerListener "talks" in a space and registers to "listen" to other spaces.
TalkerListener(String, Space) - Constructor for class TalkerListener
The TalkerListener has a name and a location
transmits(String) - Method in class TalkerListener
Tells us the contents of any telepathic message being sent.

W

whatTalkerSaid - Variable in class Message
 
whereIAmAt - Variable in class TalkerListener
 

G I M N R S T W