prioritizer
Class Pairwise.Graph.Arc

java.lang.Object
  extended byprioritizer.Pairwise.Graph.Arc
Enclosing class:
Pairwise.Graph

class Pairwise.Graph.Arc
extends java.lang.Object

Defines an arc in the graph


Field Summary
private  Pairwise.Graph.Node from
           
private  Pairwise.Graph.Node to
           
private  double value
           
 
Constructor Summary
Pairwise.Graph.Arc(Pairwise.Graph.Node from, Pairwise.Graph.Node to, double value)
          Constructs an arc between the two specified nodes with the specified value
 
Method Summary
 Pairwise.Graph.Node getFrom()
          Gets the node from where this arc leads
 Pairwise.Graph.Node getTo()
          Gets the node to where this arc leads
 double getValue()
          Gets the value of this arc (comparison)
 void setValue(double value)
          Sets the value of this arc (comparison)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

from

private Pairwise.Graph.Node from

to

private Pairwise.Graph.Node to

value

private double value
Constructor Detail

Pairwise.Graph.Arc

public Pairwise.Graph.Arc(Pairwise.Graph.Node from,
                          Pairwise.Graph.Node to,
                          double value)
Constructs an arc between the two specified nodes with the specified value

Parameters:
from - the from-node
to - the to-node
value - the specified value
Method Detail

getFrom

public Pairwise.Graph.Node getFrom()
Gets the node from where this arc leads

Returns:
the from-node

getTo

public Pairwise.Graph.Node getTo()
Gets the node to where this arc leads

Returns:
the to-node

getValue

public double getValue()
Gets the value of this arc (comparison)

Returns:
the value of the arc

setValue

public void setValue(double value)
Sets the value of this arc (comparison)

Parameters:
value - the value to set