cs132.dijkstra
Class WebPageCostModel

java.lang.Object
  extended by cs132.dijkstra.WebPageCostModel
All Implemented Interfaces:
EdgeModel<WebPage>
Direct Known Subclasses:
CharacterDistance, UnitCost

public abstract class WebPageCostModel
extends java.lang.Object
implements EdgeModel<WebPage>

An abstract class for web page edge models. It gets the successors of a WebPage by calling WebPage.getLinks().


Constructor Summary
WebPageCostModel()
           
 
Method Summary
 java.util.Collection<? extends WebPage> getSuccessors(WebPage e)
          Returns a collection of elements to which there is an edge from e.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface cs132.dijkstra.EdgeModel
cost
 

Constructor Detail

WebPageCostModel

public WebPageCostModel()
Method Detail

getSuccessors

public java.util.Collection<? extends WebPage> getSuccessors(WebPage e)
Description copied from interface: EdgeModel
Returns a collection of elements to which there is an edge from e.

Specified by:
getSuccessors in interface EdgeModel<WebPage>


Web Accessibility