public class GraphDistanceFilter extends GroupAction
| Modifier and Type | Field and Description |
|---|---|
protected BreadthFirstIterator |
m_bfs |
protected int |
m_distance |
protected Predicate |
m_groupP |
protected java.lang.String |
m_sources |
m_groupDEFAULT_STEP_TIME, INFINITY| Constructor and Description |
|---|
GraphDistanceFilter(java.lang.String group)
Create a new GraphDistanceFilter that processes the given data group
and uses a graph distance of 1.
|
GraphDistanceFilter(java.lang.String group,
int distance)
Create a new GraphDistanceFilter that processes the given data group
and uses the given graph distance.
|
GraphDistanceFilter(java.lang.String group,
java.lang.String sources,
int distance)
Create a new GraphDistanceFilter that processes the given data group
and uses the given graph distance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDistance()
Return the graph distance threshold used by this filter.
|
java.lang.String |
getSources()
Get the name of the group to use as source nodes for measuring
graph distance.
|
void |
reset()
Clears references to graph tuples.
|
void |
run(double frac)
Runs this Action, triggering whatever processing this Action performs.
|
void |
setDistance(int distance)
Set the graph distance threshold used by this filter.
|
void |
setSources(java.lang.String sources)
Set the name of the group to use as source nodes for measuring
graph distance.
|
getGroup, setGroupgetVisualization, run, setVisualizationaddActivityListener, alwaysRunAfter, cancel, fireActivityCancelled, fireActivityFinished, fireActivityScheduled, fireActivityStarted, fireActivityStepped, getDuration, getNextTime, getPace, getPacingFunction, getStartTime, getStepTime, getStopTime, isEnabled, isRunning, isScheduled, removeActivityListener, run, runAfter, runAt, setDuration, setEnabled, setPacingFunction, setStartTime, setStepTimeprotected int m_distance
protected java.lang.String m_sources
protected Predicate m_groupP
protected BreadthFirstIterator m_bfs
public GraphDistanceFilter(java.lang.String group)
Visualization.FOCUS_ITEMS group will be used as the
source nodes from which to measure the distance.group - the group to process. This group should resolve to a
Graph instance, otherwise exceptions will be thrown when this
Action is run.public GraphDistanceFilter(java.lang.String group,
int distance)
Visualization.FOCUS_ITEMS group will be used as the
source nodes from which to measure the distance.group - the group to process. This group should resolve to a
Graph instance, otherwise exceptions will be thrown when this
Action is run.distance - the graph distance within which items will be
visible.public GraphDistanceFilter(java.lang.String group,
java.lang.String sources,
int distance)
group - the group to process. This group should resolve to a
Graph instance, otherwise exceptions will be thrown when this
Action is run.sources - the group to use as source nodes for measuring
graph distance.distance - the graph distance within which items will be
visible.public int getDistance()
public void setDistance(int distance)
distance - the graph distance threshold to usepublic java.lang.String getSources()
public void setSources(java.lang.String sources)
sources - the source data grouppublic void run(double frac)
Actionrun in class GroupActionfrac - the fraction of this Action's duration that has elapsed.GroupAction.run(double)public void reset()