C# Class Smrf.NodeXL.GraphDataProviders.GraphServer.GraphServerNetworkAnalyzer

Uses the NodeXL Graph Server to get a network of people who have tweeted a specified search term.
Use GetNetworkAsync to asynchronously get the network, or GetNetwork to get it synchronously.

The network is obtained from the NodeXL Graph Server, which is a server that periodically collects tweets and user information for a small set of search terms and stores the data in a database. This class makes an HTTP call to a WCF service running on the server, and the server returns a complete graph (as GraphML) to this class.

Inheritance: HttpNetworkAnalyzerBase
显示文件 Open project: 2014-sed-team3/term-project

Public Methods

Method Description
AssertValid ( ) : void
ExceptionToMessage ( Exception oException ) : String
GetNetwork ( String searchTerm, System.DateTime minimumStatusDateUtc, System.DateTime maximumStatusDateUtc, System.Boolean expandStatusUrls, String graphServerUserName, String graphServerPassword ) : XmlDocument
GetNetworkAsync ( String searchTerm, System.DateTime minimumStatusDateUtc, System.DateTime maximumStatusDateUtc, System.Boolean expandStatusUrls, String graphServerUserName, String graphServerPassword ) : void
GraphServerNetworkAnalyzer ( ) : System

Initializes a new instance of the class.

Protected Methods

Method Description
BackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
GetNetworkDescription ( String sSearchTerm, System.DateTime oMinimumStatusDateUtc, System.DateTime oMaximumStatusDateUtc, String sGraphServerUserName, String sGraphServerPassword, XmlDocument oGraphMLXmlDocument ) : String
GetNetworkInternal ( String sSearchTerm, System.DateTime oMinimumStatusDateUtc, System.DateTime oMaximumStatusDateUtc, System.Boolean bExpandStatusUrls, String sGraphServerUserName, String sGraphServerPassword ) : XmlDocument
GetNetworkInternal ( String sSearchTerm, System.DateTime oMinimumStatusDateUtc, System.DateTime oMaximumStatusDateUtc, System.Boolean bExpandStatusUrls, String sGraphServerUserName, String sGraphServerPassword, RequestStatistics oRequestStatistics ) : XmlDocument
GetVertexCount ( XmlDocument oGraphMLXmlDocument ) : Int32
GetWcfServiceBinding ( ) : System.ServiceModel.BasicHttpBinding

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

BackgroundWorker_DoWork() protected method

protected BackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
sender object
e System.ComponentModel.DoWorkEventArgs
return void

ExceptionToMessage() public method

public ExceptionToMessage ( Exception oException ) : String
oException System.Exception
return String

GetNetwork() public method

public GetNetwork ( String searchTerm, System.DateTime minimumStatusDateUtc, System.DateTime maximumStatusDateUtc, System.Boolean expandStatusUrls, String graphServerUserName, String graphServerPassword ) : XmlDocument
searchTerm String
minimumStatusDateUtc System.DateTime
maximumStatusDateUtc System.DateTime
expandStatusUrls System.Boolean
graphServerUserName String
graphServerPassword String
return System.Xml.XmlDocument

GetNetworkAsync() public method

public GetNetworkAsync ( String searchTerm, System.DateTime minimumStatusDateUtc, System.DateTime maximumStatusDateUtc, System.Boolean expandStatusUrls, String graphServerUserName, String graphServerPassword ) : void
searchTerm String
minimumStatusDateUtc System.DateTime
maximumStatusDateUtc System.DateTime
expandStatusUrls System.Boolean
graphServerUserName String
graphServerPassword String
return void

GetNetworkDescription() protected method

protected GetNetworkDescription ( String sSearchTerm, System.DateTime oMinimumStatusDateUtc, System.DateTime oMaximumStatusDateUtc, String sGraphServerUserName, String sGraphServerPassword, XmlDocument oGraphMLXmlDocument ) : String
sSearchTerm String
oMinimumStatusDateUtc System.DateTime
oMaximumStatusDateUtc System.DateTime
sGraphServerUserName String
sGraphServerPassword String
oGraphMLXmlDocument System.Xml.XmlDocument
return String

GetNetworkInternal() protected method

protected GetNetworkInternal ( String sSearchTerm, System.DateTime oMinimumStatusDateUtc, System.DateTime oMaximumStatusDateUtc, System.Boolean bExpandStatusUrls, String sGraphServerUserName, String sGraphServerPassword ) : XmlDocument
sSearchTerm String
oMinimumStatusDateUtc System.DateTime
oMaximumStatusDateUtc System.DateTime
bExpandStatusUrls System.Boolean
sGraphServerUserName String
sGraphServerPassword String
return System.Xml.XmlDocument

GetNetworkInternal() protected method

protected GetNetworkInternal ( String sSearchTerm, System.DateTime oMinimumStatusDateUtc, System.DateTime oMaximumStatusDateUtc, System.Boolean bExpandStatusUrls, String sGraphServerUserName, String sGraphServerPassword, RequestStatistics oRequestStatistics ) : XmlDocument
sSearchTerm String
oMinimumStatusDateUtc System.DateTime
oMaximumStatusDateUtc System.DateTime
bExpandStatusUrls System.Boolean
sGraphServerUserName String
sGraphServerPassword String
oRequestStatistics Smrf.SocialNetworkLib.RequestStatistics
return System.Xml.XmlDocument

GetVertexCount() protected method

protected GetVertexCount ( XmlDocument oGraphMLXmlDocument ) : Int32
oGraphMLXmlDocument System.Xml.XmlDocument
return System.Int32

GetWcfServiceBinding() protected method

protected GetWcfServiceBinding ( ) : System.ServiceModel.BasicHttpBinding
return System.ServiceModel.BasicHttpBinding

GraphServerNetworkAnalyzer() public method

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