|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpedviz.algorithms.filter.Filter
public class Filter
This class represents a collection of conditions.
| Field Summary | |
|---|---|
static int |
AND
and operator. |
static int |
OR
or operator. |
| Constructor Summary | |
|---|---|
Filter()
Creates a new Filter object. |
|
Filter(int operator)
Creates a new Filter object and the conditions are combined with the given operator. |
|
| Method Summary | |
|---|---|
void |
addCondition(Condition condition)
Adds a new condition to the collection. |
java.util.ArrayList<Node> |
execute(Graph graph)
Executes all conditions on the given graph object and returns a collection of all valid nodes. |
int |
getOperator()
Returns the operator. |
void |
setOperator(int operator)
Sets the operator. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int AND
public static final int OR
| Constructor Detail |
|---|
public Filter()
public Filter(int operator)
operator - operator (AND/OR)| Method Detail |
|---|
public void addCondition(Condition condition)
condition - public java.util.ArrayList<Node> execute(Graph graph)
graph - Graph object
public int getOperator()
public void setOperator(int operator)
operator - operator.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||