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.
-
ADDED
- a new node was added by the crawler.
-
CRAWLERSTARTED
- the crawler was started
-
msgID
-
-
nodeMsg
-
-
TYPECHANGED
- the type of a the node getNode() changed
-
VisualizerMessage(int, URLNode)
- Creates a new VisualizerMessage.
-
getID()
-
-
getNode()
- the node that this message is about
ADDED
public static final int ADDED
- a new node was added by the crawler.
To get the node that was added use getNode()
TYPECHANGED
public static final int TYPECHANGED
- the type of a the node getNode() changed
CRAWLERSTARTED
public static final int CRAWLERSTARTED
- the crawler was started
msgID
private int msgID
nodeMsg
private URLNode nodeMsg
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
getID
public int getID()
- Returns:
- the message-ID of this message
getNode
public URLNode getNode()
- the node that this message is about
All Packages Class Hierarchy This Package Previous Next Index