edu.uci.ics.jung.graph.filters.impl
Class WeightedEdgeGraphFilter
java.lang.Object
edu.uci.ics.jung.graph.filters.GeneralEdgeAcceptFilter
edu.uci.ics.jung.graph.filters.impl.WeightedEdgeGraphFilter
- All Implemented Interfaces:
- EfficientFilter, Filter, LevelFilter
- public class WeightedEdgeGraphFilter
- extends GeneralEdgeAcceptFilter
- implements LevelFilter, EfficientFilter
This simple filter accepts Edges if their EdgeWeightLabeller turns out
to be greater than the input value.
- Author:
- danyelf
Method Summary |
boolean |
acceptEdge(Edge e)
Determines whether the current edge should be accepted
into the Graph. |
java.lang.String |
getName()
(non-Javadoc) |
int |
getValue()
|
void |
setValue(int threshold)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.uci.ics.jung.graph.filters.Filter |
filter |
WeightedEdgeGraphFilter
public WeightedEdgeGraphFilter(int threshold,
EdgeWeightLabeller el)
getName
public java.lang.String getName()
- (non-Javadoc)
- Specified by:
getName
in interface Filter
- Returns:
- A string that describes the filter.
- See Also:
Filter.getName()
setValue
public void setValue(int threshold)
- Specified by:
setValue
in interface LevelFilter
getValue
public int getValue()
- Specified by:
getValue
in interface LevelFilter
acceptEdge
public boolean acceptEdge(Edge e)
- Description copied from class:
GeneralEdgeAcceptFilter
- Determines whether the current edge should be accepted
into the Graph. User should override this method.
- Specified by:
acceptEdge
in class GeneralEdgeAcceptFilter
- Parameters:
e
- the input edge that is being evaluated.
- Returns:
- whether the edge should be accepted or not