org.graphstream.algorithm.measure
Class ElementCountMeasure
java.lang.Object
org.graphstream.algorithm.measure.ChartMeasure
org.graphstream.algorithm.measure.ChartSeriesMeasure
org.graphstream.algorithm.measure.ChartSeries2DMeasure
org.graphstream.algorithm.measure.ElementCountMeasure
- All Implemented Interfaces:
- Algorithm, DynamicAlgorithm
- Direct Known Subclasses:
- ElementCountMeasure.EdgeCountMeasure, ElementCountMeasure.NodeCountMeasure
public abstract class ElementCountMeasure
- extends ChartSeries2DMeasure
- implements DynamicAlgorithm
Method Summary |
void |
compute()
Run the algorithm. |
abstract double |
getElementCount()
Get the amount of elements. |
void |
init(org.graphstream.graph.Graph graph)
Initialization of the algorithm. |
void |
terminate()
Terminate the dynamic algorithm. |
Methods inherited from class org.graphstream.algorithm.measure.ChartSeries2DMeasure |
addValue, getCount, getXMax, getXMean, getXMin, getXVariance, getYMax, getYMean, getYMin, getYVariance, setWindowSize |
getElementCount
public abstract double getElementCount()
- Get the amount of elements.
- Returns:
- amount of elements
terminate
public void terminate()
- Description copied from interface:
DynamicAlgorithm
- Terminate the dynamic algorithm.
- Specified by:
terminate
in interface DynamicAlgorithm
- See Also:
Algorithm.init(org.graphstream.graph.Graph)
compute
public void compute()
- Description copied from interface:
Algorithm
- Run the algorithm. The
Algorithm.init(Graph)
method has to be called
before computing.
- Specified by:
compute
in interface Algorithm
- See Also:
Algorithm.init(Graph)
init
public void init(org.graphstream.graph.Graph graph)
- Description copied from interface:
Algorithm
- Initialization of the algorithm. This method has to be called before the
Algorithm.compute()
method to initialize or reset the algorithm according
to the new given graph.
- Specified by:
init
in interface Algorithm
- Parameters:
graph
- The graph this algorithm is using.
Copyright © 2012. All Rights Reserved.