edu.uci.ics.jung.graph.decorators
Class ConstantDirectionalEdgeValue
java.lang.Object
edu.uci.ics.jung.graph.decorators.ConstantDirectionalEdgeValue
- All Implemented Interfaces:
- NumberEdgeValue
public class ConstantDirectionalEdgeValue
- extends Object
- implements NumberEdgeValue
Returns the constructor-specified value for each edge type.
- Author:
- Joshua O'Madadhain
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
undirected_closeness
protected Double undirected_closeness
directed_closeness
protected Double directed_closeness
ConstantDirectionalEdgeValue
public ConstantDirectionalEdgeValue(double undirected,
double directed)
- Parameters:
undirected
- directed
-
getNumber
public Number getNumber(ArchetypeEdge e)
- Specified by:
getNumber
in interface NumberEdgeValue
- Parameters:
e
- the edge to examine
- Returns:
- the Number associated with this edge
- See Also:
NumberEdgeValue.getNumber(ArchetypeEdge)
setNumber
public void setNumber(ArchetypeEdge e,
Number n)
- Specified by:
setNumber
in interface NumberEdgeValue
- Parameters:
e
- the edge whose value we're settingn
- the Number to which we're setting the edge- See Also:
NumberEdgeValue.setNumber(edu.uci.ics.jung.graph.ArchetypeEdge, java.lang.Number)