|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.framework.Pheromone
public class Pheromone
Default pheromone implementation. Each vertex and edge can have a pheromone associated.
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 |
---|
public Pheromone(double value)
value
- the pheromone value.Method Detail |
---|
public Pheromone clone()
public double getValue()
public void setValue(double value)
value
- the value to set.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |