net.sf.myra.framework
Class HeuristicValue

java.lang.Object
  extended by net.sf.myra.framework.HeuristicValue
All Implemented Interfaces:
java.lang.Cloneable

public class HeuristicValue
extends java.lang.Object

Default heuristic value implementation. Each vertex and edge can have an heuristic value associated.

Author:
Fernando Esteban Barril Otero

Constructor Summary
HeuristicValue(double value)
          Creates a new heuristic value with the specified value.
 
Method Summary
 HeuristicValue clone()
          Creates and returns a copy of this weight instance.
 double getValue()
          Returns the value of the weight.
 void setValue(double value)
          Sets the weight value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HeuristicValue

public HeuristicValue(double value)
Creates a new heuristic value with the specified value.

Parameters:
value - the heuristic value.
Method Detail

clone

public HeuristicValue clone()
Creates and returns a copy of this weight instance.

Returns:
a copy of this weight instance.

getValue

public double getValue()
Returns the value of the weight.

Returns:
the value of the weight.

setValue

public void setValue(double value)
Sets the weight value.

Parameters:
value - the value to set.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2013. All Rights Reserved.