edu.washington.cs.supple.render
Interface ShortcutCostFunction

All Known Implementing Classes:
DefaultShortcutCostFunction

public interface ShortcutCostFunction

Author:
kgajos Standard interface for all implementations of a cost function for shortcuts

Method Summary
 float getShortcutCost(Shortcut shortcut)
          The signature for this method will probably change at some point; it computes the cost associated with a particular shortcut.
 GraphTransitionCount getTransitionCount()
           
 void setTransitionCount(GraphTransitionCount count)
           
 

Method Detail

getShortcutCost

public float getShortcutCost(Shortcut shortcut)
The signature for this method will probably change at some point; it computes the cost associated with a particular shortcut. At the moment it assumes a fixed cost per access regardless of how the shortcut is rendered. This is clearly wrong but we will worry about it later

Parameters:
shortcut - shortcut to be evaluated
Returns:
the associated cost (which depends on how much traffic goes through the shortcut)

getTransitionCount

public GraphTransitionCount getTransitionCount()
Returns:

setTransitionCount

public void setTransitionCount(GraphTransitionCount count)
Parameters:
count -