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:

    1. The execute() method is called to init the statistic with the graph and attribute model.
    2. For every interval the loop() method is called with the network at this interval as parameter.
    3. The end() method is finally called.

    Author:
    Mathieu Bastian
    • 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 interface Statistics
        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 current interval.
        Parameters:
        window - a snapshot of the graph at the current interval
        interval - 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