|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.framework.Graph.Element
public static class Graph.Element
This class represents an element of the graph.
Method Summary | |
---|---|
protected java.lang.Object |
clone()
Creates and returns a copy of this weighted component instance. |
HeuristicValue |
getHeuristicValue()
Returns the heuristic value associated with this component. |
HeuristicValue |
getHeuristicValue(int level)
Returns the heuristic value associated with this component. |
Pheromone |
getPheromone()
Returns the pheromone value associated with this component. |
Pheromone |
getPheromone(int level)
Returns the pheromone value associated with this component at the specified level. |
int |
levels()
Returns the number of pheromone levels of this element. |
void |
setHeuristicValue(HeuristicValue heuristicValue)
Sets the heuristic value associated with this component. |
void |
setHeuristicValue(HeuristicValue heuristicValue,
int level)
Sets the heuristic value associated with this component. |
void |
setPheromone(Pheromone pheromone)
Sets the pheromone value associated with this component. |
void |
setPheromone(Pheromone pheromone,
int level)
Sets the pheromone value associated with this component at the specified level. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public HeuristicValue getHeuristicValue()
Weighable
getHeuristicValue
in interface Weighable
Weighable.getHeuristicValue(int)
public HeuristicValue getHeuristicValue(int level)
Weighable
getHeuristicValue
in interface Weighable
level
- the level of the heuristic value.
public void setHeuristicValue(HeuristicValue heuristicValue)
Weighable
setHeuristicValue
in interface Weighable
heuristicValue
- the value to be set.Weighable.setHeuristicValue(HeuristicValue, int)
public void setHeuristicValue(HeuristicValue heuristicValue, int level)
Weighable
setHeuristicValue
in interface Weighable
heuristicValue
- the value to be set.level
- the level of the heuristic value.public Pheromone getPheromone()
Weighable
0
.
getPheromone
in interface Weighable
Weighable.getPheromone(int)
public Pheromone getPheromone(int level)
Weighable
getPheromone
in interface Weighable
level
- the level of the pheromone.
public void setPheromone(Pheromone pheromone)
Weighable
0
.
setPheromone
in interface Weighable
pheromone
- the value to be set.Weighable.setPheromone(Pheromone, int)
public void setPheromone(Pheromone pheromone, int level)
Weighable
setPheromone
in interface Weighable
pheromone
- the value to be set.level
- the level of the pheromone.public int levels()
protected java.lang.Object clone()
clone
in class java.lang.Object
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 |