public class AlphabeticVertexFilter extends GeneralVertexAcceptFilter implements EfficientFilter
| Constructor and Description |
|---|
AlphabeticVertexFilter(java.lang.String threshhold,
StringLabeller sl,
boolean acceptAboveThreshold) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptVertex(Vertex vert)
Passes the vertex if its StringLabeller value compares over
(or under) the threshold.
|
java.lang.String |
getName()
Returns a name for this:
AlphabeticFilter(>"TestString")
|
StringLabeller |
getStringLabeller()
Returns the String Labeller being used by this filter to check vertices with.
|
java.lang.String |
getThreshhold() |
boolean |
isAcceptThoseAboveThreshhold()
Returns the current direction of the comparison:
True if this accepts only strings above the
threshhold, otherwise, accepts only strings at or
below the threshhold.
|
void |
setAcceptThoseAboveThreshhold(boolean acceptThoseAboveThreshhold)
Sets the acceptThoseAboveThreshhold: if true, this accepts values over
the threshhold; if false, this accepts values up to and including the
threshhold, but not above it.
|
void |
setStringLabeller(StringLabeller stringLabeller)
Sets the stringLabeller.
|
void |
setThreshhold(java.lang.String threshhold)
Sets the threshhold.
|
filter, filterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfilterpublic AlphabeticVertexFilter(java.lang.String threshhold,
StringLabeller sl,
boolean acceptAboveThreshold)
public boolean acceptVertex(Vertex vert)
acceptVertex in class GeneralVertexAcceptFilterpublic java.lang.String getName()
public boolean isAcceptThoseAboveThreshhold()
public java.lang.String getThreshhold()
public void setAcceptThoseAboveThreshhold(boolean acceptThoseAboveThreshhold)
acceptThoseAboveThreshhold - public void setThreshhold(java.lang.String threshhold)
threshhold - The threshhold to setpublic StringLabeller getStringLabeller()
public void setStringLabeller(StringLabeller stringLabeller)
stringLabeller - The stringLabeller to set