C# Class Smrf.NodeXL.ExcelTemplate.GraphMetricCalculationManager

Calculates one or more sets of graph metrics and returns the results as an array of GraphMetricColumn objects.
Call to calculate the graph metrics. Call CancelAsync to stop the calculations. Handle the GraphMetricCalculationProgressChanged and events to monitor the progress and completion of the calculations.
Inheritance: Object
Afficher le fichier Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Свойство Type Description
m_oBackgroundWorker System.ComponentModel.BackgroundWorker

Méthodes publiques

Méthode Description
CalculateGraphMetricsAsync ( IGraph graph, Microsoft workbook ) : void
CalculateGraphMetricsAsync ( IGraph graph, Microsoft workbook, IGraphMetricCalculator2 graphMetricCalculators ) : void
CancelAsync ( ) : void
GraphMetricCalculationManager ( ) : System

Initializes a new instance of the class.

Méthodes protégées

Méthode Description
BackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
BackgroundWorker_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void
BackgroundWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
CalculateGraphMetricsAsyncInternal ( CalculateGraphMetricsAsyncArgs oCalculateGraphMetricsAsyncArgs, BackgroundWorker oBackgroundWorker, DoWorkEventArgs oDoWorkEventArgs ) : void
ReadWorkbook ( Microsoft oWorkbook, IGraphMetricCalculator2 oGraphMetricCalculators ) : IGraph

Private Methods

Méthode Description
AssertValid ( ) : void

Method Details

BackgroundWorker_DoWork() protected méthode

protected BackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
sender object
e System.ComponentModel.DoWorkEventArgs
Résultat void

BackgroundWorker_ProgressChanged() protected méthode

protected BackgroundWorker_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void
sender object
e System.ComponentModel.ProgressChangedEventArgs
Résultat void

BackgroundWorker_RunWorkerCompleted() protected méthode

protected BackgroundWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
sender object
e System.ComponentModel.RunWorkerCompletedEventArgs
Résultat void

CalculateGraphMetricsAsync() public méthode

public CalculateGraphMetricsAsync ( IGraph graph, Microsoft workbook ) : void
graph IGraph
workbook Microsoft
Résultat void

CalculateGraphMetricsAsync() public méthode

public CalculateGraphMetricsAsync ( IGraph graph, Microsoft workbook, IGraphMetricCalculator2 graphMetricCalculators ) : void
graph IGraph
workbook Microsoft
graphMetricCalculators IGraphMetricCalculator2
Résultat void

CalculateGraphMetricsAsyncInternal() protected méthode

protected CalculateGraphMetricsAsyncInternal ( CalculateGraphMetricsAsyncArgs oCalculateGraphMetricsAsyncArgs, BackgroundWorker oBackgroundWorker, DoWorkEventArgs oDoWorkEventArgs ) : void
oCalculateGraphMetricsAsyncArgs CalculateGraphMetricsAsyncArgs
oBackgroundWorker System.ComponentModel.BackgroundWorker
oDoWorkEventArgs System.ComponentModel.DoWorkEventArgs
Résultat void

CancelAsync() public méthode

public CancelAsync ( ) : void
Résultat void

GraphMetricCalculationManager() public méthode

Initializes a new instance of the class.
public GraphMetricCalculationManager ( ) : System
Résultat System

ReadWorkbook() protected méthode

protected ReadWorkbook ( Microsoft oWorkbook, IGraphMetricCalculator2 oGraphMetricCalculators ) : IGraph
oWorkbook Microsoft
oGraphMetricCalculators IGraphMetricCalculator2
Résultat IGraph

Property Details

m_oBackgroundWorker protected_oe property

protected BackgroundWorker,System.ComponentModel m_oBackgroundWorker
Résultat System.ComponentModel.BackgroundWorker