public class DistanceNode
extends java.lang.Object
reference_ and distance_.
 reference_ indicates one Solution in a
 SolutionSet and distance_ represents the distance_
 to this solution.| Constructor and Description | 
|---|
DistanceNode(double distance,
            int reference)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
double | 
getDistance()
Gets the distance 
 | 
int | 
getReference()
Gets the reference 
 | 
void | 
setDistance(double distance)
Sets the distance to a  
Solution | 
void | 
setReferece(int reference)
Sets the reference to a  
Solution | 
public DistanceNode(double distance,
                    int reference)
distance - The distance to a Solution.reference - The position of the Solution.public void setReferece(int reference)
Solutionreference - The referencepublic double getDistance()
public void setDistance(double distance)
Solutiondistance - The distancepublic int getReference()