net.sf.myra.framework
Class Pheromone

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

public class Pheromone
extends java.lang.Object

Default pheromone implementation. Each vertex and edge can have a pheromone associated.

Version:
$Revision$ $Date:: $
Author:
Fernando Esteban Barril Otero

Constructor Summary
Pheromone(double value)
          Creates a new pheromone with the specified value.
 
Method Summary
 Pheromone 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

Pheromone

public Pheromone(double value)
Creates a new pheromone with the specified value.

Parameters:
value - the pheromone value.
Method Detail

clone

public Pheromone 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.