public class DynamicDegree extends Object implements DynamicStatistics, LongTask
| Modifier and Type | Field and Description |
|---|---|
static String |
DYNAMIC_AVGDEGREE |
static String |
DYNAMIC_DEGREE |
static String |
DYNAMIC_INDEGREE |
static String |
DYNAMIC_OUTDEGREE |
| Constructor and Description |
|---|
DynamicDegree() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Cancel the task.
|
void |
end()
Called at the end of the process after all loops.
|
void |
execute(org.gephi.graph.api.GraphModel graphModel)
First method to be executed in the dynamic statistic process.
|
org.gephi.graph.api.Interval |
getBounds()
Returns the min and max bounds.
|
String |
getReport()
Returns an HTML string that displays the statistics result.
|
double |
getTick()
Returns the tick.
|
double |
getWindow()
Returns the window duration
|
boolean |
isAverageOnly() |
boolean |
isDirected() |
void |
loop(org.gephi.graph.api.GraphView window,
org.gephi.graph.api.Interval interval)
Iteration of the dynamic statistics algorithm on a new interval.
|
void |
setAverageOnly(boolean averageOnly) |
void |
setBounds(org.gephi.graph.api.Interval bounds)
Sets the minimum and maximum bound
|
void |
setDirected(boolean isDirected) |
void |
setProgressTicket(ProgressTicket progressTicket)
Set the progress ticket for the long task.
|
void |
setTick(double tick)
Sets the tick.
|
void |
setWindow(double window)
Sets the window duration
|
public static final String DYNAMIC_AVGDEGREE
public static final String DYNAMIC_INDEGREE
public static final String DYNAMIC_OUTDEGREE
public static final String DYNAMIC_DEGREE
public void execute(org.gephi.graph.api.GraphModel graphModel)
DynamicStatisticsexecute in interface DynamicStatisticsexecute in interface StatisticsgraphModel - the graph modelpublic String getReport()
StatisticsgetReport in interface Statisticspublic void loop(org.gephi.graph.api.GraphView window,
org.gephi.graph.api.Interval interval)
DynamicStatisticsinterval.loop in interface DynamicStatisticswindow - a snapshot of the graph at the current intervalinterval - the interval of the current snapshotpublic void end()
DynamicStatisticsend in interface DynamicStatisticspublic void setBounds(org.gephi.graph.api.Interval bounds)
DynamicStatisticssetBounds in interface DynamicStatisticsbounds - the min and max boundspublic void setWindow(double window)
DynamicStatisticssetWindow in interface DynamicStatisticswindow - the window durationpublic void setTick(double tick)
DynamicStatisticssetTick in interface DynamicStatisticstick - the tickpublic double getWindow()
DynamicStatisticsgetWindow in interface DynamicStatisticspublic double getTick()
DynamicStatisticsgetTick in interface DynamicStatisticspublic org.gephi.graph.api.Interval getBounds()
DynamicStatisticsgetBounds in interface DynamicStatisticspublic void setDirected(boolean isDirected)
public boolean isDirected()
public void setAverageOnly(boolean averageOnly)
public boolean isAverageOnly()
public boolean cancel()
LongTasktrue if the task has been sucessfully cancelled, false otherwise.public void setProgressTicket(ProgressTicket progressTicket)
LongTasksetProgressTicket in interface LongTaskprogressTicket - the progress ticket for this taskCopyright © 2007–2017. All rights reserved.