All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Webcrawler.Visualizer.VisualizerMessage

java.lang.Object
   |
   +----Webcrawler.Visualizer.VisualizerMessage

public class VisualizerMessage
extends Object
When the crawler crawls through the net and finds new links, it notifies all observers that are attached to it by sending VisualizerMessage-objects to them. The Visualizer is usually one (the one) observer and can then refresh the display or do whatever the Visualizer should do.


Variable Index

 o ADDED
a new node was added by the crawler.
 o CRAWLERSTARTED
the crawler was started
 o msgID
 o nodeMsg
 o TYPECHANGED
the type of a the node getNode() changed

Constructor Index

 o VisualizerMessage(int, URLNode)
Creates a new VisualizerMessage.

Method Index

 o getID()
 o getNode()
the node that this message is about

Variables

 o ADDED
 public static final int ADDED
a new node was added by the crawler. To get the node that was added use getNode()

 o TYPECHANGED
 public static final int TYPECHANGED
the type of a the node getNode() changed

 o CRAWLERSTARTED
 public static final int CRAWLERSTARTED
the crawler was started

 o msgID
 private int msgID
 o nodeMsg
 private URLNode nodeMsg

Constructors

 o VisualizerMessage
 public VisualizerMessage(int id,
                          URLNode theNode)
Creates a new VisualizerMessage.

Parameters:
id - one of the above MessageIDs (e.g: ADDED, TYPECHANGED,..)
theNode - the node that was added/changed

Methods

 o getID
 public int getID()
Returns:
the message-ID of this message
 o getNode
 public URLNode getNode()
the node that this message is about


All Packages  Class Hierarchy  This Package  Previous  Next  Index