Gephi Toolkit Javadoc

org.gephi.statistics.plugin.dynamic
Class DynamicNbNodes

java.lang.Object
  extended by org.gephi.statistics.plugin.dynamic.DynamicNbNodes
All Implemented Interfaces:
DynamicStatistics, Statistics

public class DynamicNbNodes
extends java.lang.Object
implements DynamicStatistics

Author:
Sébastien Heymann

Field Summary
static java.lang.String NB_NODES
           
 
Constructor Summary
DynamicNbNodes()
           
 
Method Summary
 void end()
          Called at the end of the process after all loops.
 void execute(GraphModel graphModel, AttributeModel attributeModel)
          First method to be executed in the dynamic statistic process.
 Interval getBounds()
          Returns the min and max bounds.
 java.lang.String getReport()
          Returns an HTML string that displays the statistics result.
 double getTick()
          Returns the tick.
 double getWindow()
          Returns the window duration
 void loop(GraphView window, Interval interval)
          Iteration of the dynamic statistics algorithm on a new interval.
 void setBounds(Interval bounds)
          Sets the minimum and maximum bound
 void setTick(double tick)
          Sets the tick.
 void setWindow(double window)
          Sets the window duration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NB_NODES

public static final java.lang.String NB_NODES
See Also:
Constant Field Values
Constructor Detail

DynamicNbNodes

public DynamicNbNodes()
Method Detail

execute

public void execute(GraphModel graphModel,
                    AttributeModel attributeModel)
Description copied from interface: DynamicStatistics
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 interface DynamicStatistics
Specified by:
execute in interface Statistics
Parameters:
graphModel - the graph model
attributeModel - the attribute model

getReport

public java.lang.String getReport()
Description copied from interface: Statistics
Returns an HTML string that displays the statistics result. Can contains complex HTML snippets and images.

Specified by:
getReport in interface Statistics
Returns:
An HTML string that displays the results for this Statistics

loop

public void loop(GraphView window,
                 Interval interval)
Description copied from interface: DynamicStatistics
Iteration of the dynamic statistics algorithm on a new interval. The graph window is a snapshot of the graph at the current interval.

Specified by:
loop in interface DynamicStatistics
Parameters:
window - a snapshot of the graph at the current interval
interval - the interval of the current snapshot

end

public void end()
Description copied from interface: DynamicStatistics
Called at the end of the process after all loops.

Specified by:
end in interface DynamicStatistics

setBounds

public void setBounds(Interval bounds)
Description copied from interface: DynamicStatistics
Sets the minimum and maximum bound

Specified by:
setBounds in interface DynamicStatistics
Parameters:
bounds - the min and max bounds

setWindow

public void setWindow(double window)
Description copied from interface: DynamicStatistics
Sets the window duration

Specified by:
setWindow in interface DynamicStatistics
Parameters:
window - the window duration

setTick

public void setTick(double tick)
Description copied from interface: DynamicStatistics
Sets the tick. The tick is how much the window is moved to the right at each iteration.

Specified by:
setTick in interface DynamicStatistics
Parameters:
tick - the tick

getWindow

public double getWindow()
Description copied from interface: DynamicStatistics
Returns the window duration

Specified by:
getWindow in interface DynamicStatistics
Returns:
the window duration

getTick

public double getTick()
Description copied from interface: DynamicStatistics
Returns the tick. The tick is how much the window is moved to the right at each iteration.

Specified by:
getTick in interface DynamicStatistics
Returns:
the tick

getBounds

public Interval getBounds()
Description copied from interface: DynamicStatistics
Returns the min and max bounds.

Specified by:
getBounds in interface DynamicStatistics
Returns:
the bounds

Gephi Toolkit Javadoc