|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.framework.Edge<V>
public class Edge<V extends Info>
This class represents an edge (connection) of the problem construction graph.
Method Summary | |
---|---|
int |
compareTo(Edge<V> other)
|
boolean |
equals(Edge<V> edge)
|
boolean |
equals(java.lang.Object o)
|
Vertex<V> |
getFrom()
Returns the edge's start node. |
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. |
Vertex<V> |
getTo()
Returns the edge's end node. |
int |
hashCode()
|
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 |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Vertex<V> getFrom()
public Vertex<V> getTo()
public int compareTo(Edge<V> other)
compareTo
in interface java.lang.Comparable<Edge<V extends Info>>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equals(Edge<V> edge)
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 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 |