annas.graph
Interface ArcInterface<N>

Type Parameters:
N - Node type
All Known Implementing Classes:
DefaultArc

public interface ArcInterface<N>

Interface of all arcs used in a Graph

Author:
Sam Wilson

Method Summary
 N getHead()
          Gets the head of the arc
 N getTail()
          Gets the tail of the arc
 java.lang.Double getWeight()
          Get the Weight of the arc by evaluating @see WeightedInterface.evaluate()
 WeightedInterface getWeightedInterface()
          Gets the Weight function
 void setWeight(WeightedInterface wi)
          Sets the Weight function
 

Method Detail

getHead

N getHead()
Gets the head of the arc

Returns:
Node at the head of the arc

getTail

N getTail()
Gets the tail of the arc

Returns:
Node at the tail of the arc

getWeight

java.lang.Double getWeight()
Get the Weight of the arc by evaluating @see WeightedInterface.evaluate()

Returns:
weight of the arc

setWeight

void setWeight(WeightedInterface wi)
Sets the Weight function

Parameters:
wi - new weight function

getWeightedInterface

WeightedInterface getWeightedInterface()
Gets the Weight function

Returns:
WeighteInterface used by the arc