Package org.gephi.statistics.spi
Interface DynamicStatistics
-
- All Superinterfaces:
Statistics
public interface DynamicStatistics extends Statistics
Define a dynamic statistics implementation. A Dynamic Statistics uses a sliding window on a dynamic network to compute results.The dynamic statistic execution is a three-steps process:
- The
execute()
method is called to init the statistic with the graph and attribute model. - For every interval the
loop()
method is called with the network at this interval as parameter. - The
end()
method is finally called.
- Author:
- Mathieu Bastian
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
end()
Called at the end of the process after all loops.void
execute(GraphModel graphModel)
First method to be executed in the dynamic statistic process.Interval
getBounds()
Returns the min and max bounds.double
getTick()
Returns the tick.double
getWindow()
Returns the window durationvoid
loop(GraphView window, Interval interval)
Iteration of the dynamic statistics algorithm on a new interval.void
setBounds(Interval bounds)
Sets the minimum and maximum boundvoid
setTick(double tick)
Sets the tick.void
setWindow(double window)
Sets the window duration-
Methods inherited from interface org.gephi.statistics.spi.Statistics
getReport
-
-
-
-
Method Detail
-
execute
void execute(GraphModel graphModel)
First method to be executed in the dynamic statistic process. Initialize the statistics with the graph and attributes. The graph model holds the graph structure and the attribute model the attribute columns.- Specified by:
execute
in interfaceStatistics
- Parameters:
graphModel
- the graph model
-
loop
void loop(GraphView window, Interval interval)
Iteration of the dynamic statistics algorithm on a new interval. The graph window is a snapshot of the graph at the currentinterval
.- Parameters:
window
- a snapshot of the graph at the current intervalinterval
- the interval of the current snapshot
-
end
void end()
Called at the end of the process after all loops.
-
getWindow
double getWindow()
Returns the window duration- Returns:
- the window duration
-
setWindow
void setWindow(double window)
Sets the window duration- Parameters:
window
- the window duration
-
getTick
double getTick()
Returns the tick. The tick is how much the window is moved to the right at each iteration.- Returns:
- the tick
-
setTick
void setTick(double tick)
Sets the tick. The tick is how much the window is moved to the right at each iteration.- Parameters:
tick
- the tick
-
getBounds
Interval getBounds()
Returns the min and max bounds.- Returns:
- the bounds
-
setBounds
void setBounds(Interval bounds)
Sets the minimum and maximum bound- Parameters:
bounds
- the min and max bounds
-
-