|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectannas.graph.DefaultArc<N>
N
- Node typepublic class DefaultArc<N>
Default arc with basic implementation of all the methods. This class is ideal for extending.
Constructor Summary | |
---|---|
DefaultArc(N tail,
N head,
WeightedInterface wi)
Constructor |
Method Summary | |
---|---|
N |
getHead()
Gets the head of the arc |
N |
getTail()
Gets the tail of the arc |
java.lang.Double |
getWeight()
Get the Weight of the arc by evaluating @see WeightedInterface.evaluate() |
WeightedInterface |
getWeightedInterface()
Gets the Weight function |
void |
setWeight(WeightedInterface wi)
Sets the Weight function |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultArc(N tail, N head, WeightedInterface wi)
tail
- Tail of the archead
- Head of the arcwi
- Weight function of the arcMethod Detail |
---|
public WeightedInterface getWeightedInterface()
getWeightedInterface
in interface ArcInterface<N>
public N getHead()
getHead
in interface ArcInterface<N>
public N getTail()
getTail
in interface ArcInterface<N>
public java.lang.Double getWeight()
getWeight
in interface ArcInterface<N>
public void setWeight(WeightedInterface wi)
setWeight
in interface ArcInterface<N>
wi
- new weight function
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |