C# 클래스 Smrf.NodeXL.ExcelTemplate.TwitterSearchNetworkTopItemsCalculator2

Calculates the top items within a Twitter search network.
This class calculates various top-item metrics for a Twitter search network. If the workbook doesn't contain a Twitter search network, this class does nothing.

This graph metric calculator differs from most other calculators in that it reads tweet-related columns that were written to the Excel workbook by the TwitterSearchNetworkImporter class. The other calculators look only at how the graph's vertices are connected to each other. Therefore, there is no corresponding lower-level TwitterSearchNetworkTopItemsCalculator class in the Smrf.NodeXL.Algorithms namespace, and the top items in a Twitter search network cannot be calculated outside of this ExcelTemplate project.

Here are the metrics calculated by this class.

For the Twitter Search network top items worksheet:

Top URLs, domains, hashtags, words, word pairs, replies-to, and mentions in tweets; and top tweeters. These get calculated for the entire graph, as well as for the graph's top groups, ranked by vertex count.

For the group worksheet:

Top URLs, domains, hashtags, words, word pairs, replies-to, and mentions in tweets; and top tweeters. These get calculated for each group.

For the vertex worksheet:

Top URLs, domains, hashtags, words, and word pairs in tweets, by both count and salience. These get calculated for each vertex.

상속: TopItemsCalculatorBase2
파일 보기 프로젝트 열기: 2014-sed-team3/term-project

보호된 프로퍼티들

프로퍼티 타입 설명
m_oGraphHistory GraphHistory
m_oTwitterStatusTextParser Smrf.SocialNetworkLib.Twitter.TwitterStatusTextParser

공개 메소드들

메소드 설명
AssertValid ( ) : void
TwitterSearchNetworkTopItemsCalculator2 ( GraphHistory graphHistory ) : System

Initializes a new instance of the class.

보호된 메소드들

메소드 설명
AddColumnsForRepliesToAndMentions ( Int32 &iTableIndex, List oAllGroupEdgeInfos, List oGraphMetricColumns ) : void
AddColumnsForStatusContent ( Int32 &iTableIndex, List oAllGroupEdgeInfos, String sEdgeColumnName, System.Boolean bEdgeColumnContainsUrls, String sGroupTableColumnName, List oGraphMetricColumns ) : void
AddColumnsForTweeters ( Int32 &iTableIndex, IGraph oGraph, List oGraphMetricColumns ) : void
AddGraphMetricColumnPair ( String sTableName, String sGraphMetricColumn1Name, String sGraphMetricColumn2Name, List oTopStrings, List oTopStringCounts, System.Boolean bTopStringsContainUrls, List oGraphMetricColumns ) : void
AdjustColumnWidths ( List oGraphMetricColumns, List oAllGroupEdgeInfos ) : void
FilterAndReformatWordMetrics ( Int32 &iTableIndex, GraphMetricColumn oWordMetricColumns, List oAllGroupEdgeInfos, List oGraphMetricColumns ) : void
FilterAndReformatWordMetrics ( Int32 &iTableIndex, String sTableDescription, GraphMetricColumnOrdered oWord1Column, GraphMetricColumnOrdered oWord2Column, GraphMetricColumnOrdered oCountColumn, GraphMetricColumnOrdered oGroupNameColumn, List oAllGroupEdgeInfos, String sGroupTableColumnName, List oGraphMetricColumns ) : void
GetGraphMetricColumnNames ( String sTableDescription, String sGroupName, String &sGraphMetricColumn1Name, String &sGraphMetricColumn2Name ) : void
GetGroupName ( GroupEdgeInfo oGroupEdgeInfo ) : String
GetGroupRowID ( GroupEdgeInfo oGroupEdgeInfo ) : Int32
GetSearchTerm ( ) : String
GetTableName ( Int32 &iTableIndex ) : String
ReportProgressAndCheckCancellationPending ( CalculateGraphMetricsContext oCalculateGraphMetricsContext ) : System.Boolean
TryAddColumnsForWordsAndWordPairs ( Int32 &iTableIndex, IGraph oGraph, List oAllGroupEdgeInfos, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean
TryCalculateGraphMetricsInternal ( IGraph oGraph, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean
TryCalculateTopItemAndGroupMetrics ( IGraph oGraph, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean
TryCalculateVertexMetrics ( IGraph oGraph, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean

메소드 상세

AddColumnsForRepliesToAndMentions() 보호된 메소드

protected AddColumnsForRepliesToAndMentions ( Int32 &iTableIndex, List oAllGroupEdgeInfos, List oGraphMetricColumns ) : void
iTableIndex System.Int32
oAllGroupEdgeInfos List
oGraphMetricColumns List
리턴 void

AddColumnsForStatusContent() 보호된 메소드

protected AddColumnsForStatusContent ( Int32 &iTableIndex, List oAllGroupEdgeInfos, String sEdgeColumnName, System.Boolean bEdgeColumnContainsUrls, String sGroupTableColumnName, List oGraphMetricColumns ) : void
iTableIndex System.Int32
oAllGroupEdgeInfos List
sEdgeColumnName String
bEdgeColumnContainsUrls System.Boolean
sGroupTableColumnName String
oGraphMetricColumns List
리턴 void

AddColumnsForTweeters() 보호된 메소드

protected AddColumnsForTweeters ( Int32 &iTableIndex, IGraph oGraph, List oGraphMetricColumns ) : void
iTableIndex System.Int32
oGraph IGraph
oGraphMetricColumns List
리턴 void

AddGraphMetricColumnPair() 보호된 메소드

protected AddGraphMetricColumnPair ( String sTableName, String sGraphMetricColumn1Name, String sGraphMetricColumn2Name, List oTopStrings, List oTopStringCounts, System.Boolean bTopStringsContainUrls, List oGraphMetricColumns ) : void
sTableName String
sGraphMetricColumn1Name String
sGraphMetricColumn2Name String
oTopStrings List
oTopStringCounts List
bTopStringsContainUrls System.Boolean
oGraphMetricColumns List
리턴 void

AdjustColumnWidths() 보호된 메소드

protected AdjustColumnWidths ( List oGraphMetricColumns, List oAllGroupEdgeInfos ) : void
oGraphMetricColumns List
oAllGroupEdgeInfos List
리턴 void

AssertValid() 공개 메소드

public AssertValid ( ) : void
리턴 void

FilterAndReformatWordMetrics() 보호된 메소드

protected FilterAndReformatWordMetrics ( Int32 &iTableIndex, GraphMetricColumn oWordMetricColumns, List oAllGroupEdgeInfos, List oGraphMetricColumns ) : void
iTableIndex System.Int32
oWordMetricColumns GraphMetricColumn
oAllGroupEdgeInfos List
oGraphMetricColumns List
리턴 void

FilterAndReformatWordMetrics() 보호된 메소드

protected FilterAndReformatWordMetrics ( Int32 &iTableIndex, String sTableDescription, GraphMetricColumnOrdered oWord1Column, GraphMetricColumnOrdered oWord2Column, GraphMetricColumnOrdered oCountColumn, GraphMetricColumnOrdered oGroupNameColumn, List oAllGroupEdgeInfos, String sGroupTableColumnName, List oGraphMetricColumns ) : void
iTableIndex System.Int32
sTableDescription String
oWord1Column GraphMetricColumnOrdered
oWord2Column GraphMetricColumnOrdered
oCountColumn GraphMetricColumnOrdered
oGroupNameColumn GraphMetricColumnOrdered
oAllGroupEdgeInfos List
sGroupTableColumnName String
oGraphMetricColumns List
리턴 void

GetGraphMetricColumnNames() 보호된 메소드

protected GetGraphMetricColumnNames ( String sTableDescription, String sGroupName, String &sGraphMetricColumn1Name, String &sGraphMetricColumn2Name ) : void
sTableDescription String
sGroupName String
sGraphMetricColumn1Name String
sGraphMetricColumn2Name String
리턴 void

GetGroupName() 보호된 메소드

protected GetGroupName ( GroupEdgeInfo oGroupEdgeInfo ) : String
oGroupEdgeInfo GroupEdgeInfo
리턴 String

GetGroupRowID() 보호된 메소드

protected GetGroupRowID ( GroupEdgeInfo oGroupEdgeInfo ) : Int32
oGroupEdgeInfo GroupEdgeInfo
리턴 System.Int32

GetSearchTerm() 보호된 메소드

protected GetSearchTerm ( ) : String
리턴 String

GetTableName() 보호된 메소드

protected GetTableName ( Int32 &iTableIndex ) : String
iTableIndex System.Int32
리턴 String

ReportProgressAndCheckCancellationPending() 보호된 메소드

protected ReportProgressAndCheckCancellationPending ( CalculateGraphMetricsContext oCalculateGraphMetricsContext ) : System.Boolean
oCalculateGraphMetricsContext CalculateGraphMetricsContext
리턴 System.Boolean

TryAddColumnsForWordsAndWordPairs() 보호된 메소드

protected TryAddColumnsForWordsAndWordPairs ( Int32 &iTableIndex, IGraph oGraph, List oAllGroupEdgeInfos, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean
iTableIndex System.Int32
oGraph IGraph
oAllGroupEdgeInfos List
oCalculateGraphMetricsContext CalculateGraphMetricsContext
oGraphMetricColumns List
리턴 System.Boolean

TryCalculateGraphMetricsInternal() 보호된 메소드

protected TryCalculateGraphMetricsInternal ( IGraph oGraph, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean
oGraph IGraph
oCalculateGraphMetricsContext CalculateGraphMetricsContext
oGraphMetricColumns List
리턴 System.Boolean

TryCalculateTopItemAndGroupMetrics() 보호된 메소드

protected TryCalculateTopItemAndGroupMetrics ( IGraph oGraph, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean
oGraph IGraph
oCalculateGraphMetricsContext CalculateGraphMetricsContext
oGraphMetricColumns List
리턴 System.Boolean

TryCalculateVertexMetrics() 보호된 메소드

protected TryCalculateVertexMetrics ( IGraph oGraph, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean
oGraph IGraph
oCalculateGraphMetricsContext CalculateGraphMetricsContext
oGraphMetricColumns List
리턴 System.Boolean

TwitterSearchNetworkTopItemsCalculator2() 공개 메소드

Initializes a new instance of the class.
public TwitterSearchNetworkTopItemsCalculator2 ( GraphHistory graphHistory ) : System
graphHistory GraphHistory /// Describes how the graph was created. ///
리턴 System

프로퍼티 상세

m_oGraphHistory 보호되어 있는 프로퍼티

protected GraphHistory,Smrf.NodeXL.ExcelTemplate m_oGraphHistory
리턴 GraphHistory

m_oTwitterStatusTextParser 보호되어 있는 프로퍼티

protected TwitterStatusTextParser,Smrf.SocialNetworkLib.Twitter m_oTwitterStatusTextParser
리턴 Smrf.SocialNetworkLib.Twitter.TwitterStatusTextParser