C# Class Smrf.NodeXL.ExcelTemplate.TopItemsCalculatorBase2

Base class for several graph metric calculators that calculate the top items in the graph.
The meaning of "top items" and the worksheet to which they are written in the workbook are determined by the derived class.
Inheritance: GraphMetricCalculatorBase2
显示文件 Open project: 2014-sed-team3/term-project

Public Methods

Method Description
AssertValid ( ) : void
TopItemsCalculatorBase2 ( ) : System

Initializes a new instance of the class.

TryCalculateGraphMetrics ( IGraph graph, CalculateGraphMetricsContext calculateGraphMetricsContext, GraphMetricColumn &graphMetricColumns ) : System.Boolean

Protected Methods

Method Description
AddColumnsForRankedVertices ( IEnumerable oVertices, String sRankedColumnName, Int32 iMaximumVertices, String sGraphMetricWorksheetName, String sGraphMetricTableName, String sGraphMetricColumn1Name, String sGraphMetricColumn2Name, List oGraphMetricColumns ) : void
RankVertices ( IEnumerable oVertices, String sRankedColumnName ) : IList
TryCalculateGraphMetricsInternal ( IGraph oGraph, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean

Method Details

AddColumnsForRankedVertices() protected method

protected AddColumnsForRankedVertices ( IEnumerable oVertices, String sRankedColumnName, Int32 iMaximumVertices, String sGraphMetricWorksheetName, String sGraphMetricTableName, String sGraphMetricColumn1Name, String sGraphMetricColumn2Name, List oGraphMetricColumns ) : void
oVertices IEnumerable
sRankedColumnName String
iMaximumVertices System.Int32
sGraphMetricWorksheetName String
sGraphMetricTableName String
sGraphMetricColumn1Name String
sGraphMetricColumn2Name String
oGraphMetricColumns List
return void

AssertValid() public method

public AssertValid ( ) : void
return void

RankVertices() protected method

protected RankVertices ( IEnumerable oVertices, String sRankedColumnName ) : IList
oVertices IEnumerable
sRankedColumnName String
return IList

TopItemsCalculatorBase2() public method

Initializes a new instance of the class.
public TopItemsCalculatorBase2 ( ) : System
return System

TryCalculateGraphMetrics() public method

public TryCalculateGraphMetrics ( IGraph graph, CalculateGraphMetricsContext calculateGraphMetricsContext, GraphMetricColumn &graphMetricColumns ) : System.Boolean
graph IGraph
calculateGraphMetricsContext CalculateGraphMetricsContext
graphMetricColumns GraphMetricColumn
return System.Boolean

TryCalculateGraphMetricsInternal() protected abstract method

protected abstract TryCalculateGraphMetricsInternal ( IGraph oGraph, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean
oGraph IGraph
oCalculateGraphMetricsContext CalculateGraphMetricsContext
oGraphMetricColumns List
return System.Boolean