C# Class Smrf.NodeXL.Algorithms.GraphMetricCalculatorBase

Base class for classes that implement .
Inheritance: Object, IGraphMetricCalculator
Afficher le fichier Open project: 2014-sed-team3/term-project

Méthodes publiques

Méthode Description
CalculateProgressInPercent ( Int32 calculationsCompleted, Int32 totalCalculations ) : Int32
SetSnapGraphMetricCalculatorPath ( String snapGraphMetricCalculatorPath ) : void

Méthodes protégées

Méthode Description
CalculateEdgesInFullyConnectedNeighborhood ( Int32 iAdjacentVertices, System.Boolean bGraphIsDirected ) : Int32
CalculateSnapGraphMetrics ( IGraph oGraph, SnapGraphMetrics eSnapGraphMetrics ) : String
CalculateSnapGraphMetrics ( IGraph oGraph, SnapGraphMetrics eSnapGraphMetrics, List oGroups ) : String
CreateSnapGroupInputFile ( List oGroups, String sSnapGroupInputFilePath ) : void
CreateSnapInputFile ( IGraph oGraph, String sSnapInputFilePath ) : void
DeleteSnapFile ( String sSnapFilePath ) : void
GetSnapGraphMetricCalculatorPath ( SnapGraphMetrics eSnapGraphMetrics ) : String
ParseSnapDoubleGraphMetricValue ( String asFieldsFromSnapOutputFileLine, Int32 iFieldIndex ) : Double
ParseSnapInt32GraphMetricValue ( String asFieldsFromSnapOutputFileLine, Int32 iFieldIndex ) : Int32
ReportCannotCalculateGraphMetrics ( String sMessage ) : void
ReportProgress ( Int32 iCalculationsSoFar, Int32 iTotalCalculations, BackgroundWorker oBackgroundWorker ) : void
ReportProgressAndCheckCancellationPending ( Int32 iCalculationsSoFar, Int32 iTotalCalculations, BackgroundWorker oBackgroundWorker ) : System.Boolean
TryCallSnapGraphMetricCalculator ( SnapGraphMetrics eSnapGraphMetrics, String sArguments, String &sStandardError ) : System.Boolean

Private Methods

Méthode Description
AssertValid ( ) : void
GraphMetricCalculatorBase ( ) : System

Static constructor for the GraphMetricCalculatorBase class.

Method Details

CalculateEdgesInFullyConnectedNeighborhood() protected méthode

protected CalculateEdgesInFullyConnectedNeighborhood ( Int32 iAdjacentVertices, System.Boolean bGraphIsDirected ) : Int32
iAdjacentVertices System.Int32
bGraphIsDirected System.Boolean
Résultat System.Int32

CalculateProgressInPercent() public static méthode

public static CalculateProgressInPercent ( Int32 calculationsCompleted, Int32 totalCalculations ) : Int32
calculationsCompleted System.Int32
totalCalculations System.Int32
Résultat System.Int32

CalculateSnapGraphMetrics() protected méthode

protected CalculateSnapGraphMetrics ( IGraph oGraph, SnapGraphMetrics eSnapGraphMetrics ) : String
oGraph IGraph
eSnapGraphMetrics SnapGraphMetrics
Résultat String

CalculateSnapGraphMetrics() protected méthode

protected CalculateSnapGraphMetrics ( IGraph oGraph, SnapGraphMetrics eSnapGraphMetrics, List oGroups ) : String
oGraph IGraph
eSnapGraphMetrics SnapGraphMetrics
oGroups List
Résultat String

CreateSnapGroupInputFile() protected méthode

protected CreateSnapGroupInputFile ( List oGroups, String sSnapGroupInputFilePath ) : void
oGroups List
sSnapGroupInputFilePath String
Résultat void

CreateSnapInputFile() protected méthode

protected CreateSnapInputFile ( IGraph oGraph, String sSnapInputFilePath ) : void
oGraph IGraph
sSnapInputFilePath String
Résultat void

DeleteSnapFile() protected méthode

protected DeleteSnapFile ( String sSnapFilePath ) : void
sSnapFilePath String
Résultat void

GetSnapGraphMetricCalculatorPath() protected méthode

protected GetSnapGraphMetricCalculatorPath ( SnapGraphMetrics eSnapGraphMetrics ) : String
eSnapGraphMetrics SnapGraphMetrics
Résultat String

ParseSnapDoubleGraphMetricValue() protected méthode

protected ParseSnapDoubleGraphMetricValue ( String asFieldsFromSnapOutputFileLine, Int32 iFieldIndex ) : Double
asFieldsFromSnapOutputFileLine String
iFieldIndex System.Int32
Résultat Double

ParseSnapInt32GraphMetricValue() protected méthode

protected ParseSnapInt32GraphMetricValue ( String asFieldsFromSnapOutputFileLine, Int32 iFieldIndex ) : Int32
asFieldsFromSnapOutputFileLine String
iFieldIndex System.Int32
Résultat System.Int32

ReportCannotCalculateGraphMetrics() protected méthode

protected ReportCannotCalculateGraphMetrics ( String sMessage ) : void
sMessage String
Résultat void

ReportProgress() protected méthode

protected ReportProgress ( Int32 iCalculationsSoFar, Int32 iTotalCalculations, BackgroundWorker oBackgroundWorker ) : void
iCalculationsSoFar System.Int32
iTotalCalculations System.Int32
oBackgroundWorker System.ComponentModel.BackgroundWorker
Résultat void

ReportProgressAndCheckCancellationPending() protected méthode

protected ReportProgressAndCheckCancellationPending ( Int32 iCalculationsSoFar, Int32 iTotalCalculations, BackgroundWorker oBackgroundWorker ) : System.Boolean
iCalculationsSoFar System.Int32
iTotalCalculations System.Int32
oBackgroundWorker System.ComponentModel.BackgroundWorker
Résultat System.Boolean

SetSnapGraphMetricCalculatorPath() static public méthode

static public SetSnapGraphMetricCalculatorPath ( String snapGraphMetricCalculatorPath ) : void
snapGraphMetricCalculatorPath String
Résultat void

TryCallSnapGraphMetricCalculator() protected méthode

protected TryCallSnapGraphMetricCalculator ( SnapGraphMetrics eSnapGraphMetrics, String sArguments, String &sStandardError ) : System.Boolean
eSnapGraphMetrics SnapGraphMetrics
sArguments String
sStandardError String
Résultat System.Boolean