C# Class Bevisuali.UX.Graph.GraphInspector

Inheritance: System.Windows.Controls.UserControl
显示文件 Open project: duckmaestro/F-AI

Public Methods

Method Description
GraphInspector ( ) : System
SetConfiguringVariable ( string variableName ) : void
SetGraph ( BayesianNetwork network, string>.IDictionary variableAbbreviations ) : void

Assigns a network to this graph inspector. The graph inspector uses this network's local probability descriptions and structure. Layout must be updated separately.

SetGraphLayout ( Point>.IDictionary layout ) : void

Provides a graph layout for this inspector to use.

SetInferenceResults ( DiscreteDistribution>.IDictionary results, int scenarioId, FAI evidence ) : void
SetInterestVariables ( IEnumerable variableNames ) : void

Configures the graph to emphasize the nodes listed.

SetLayoutOptions ( object options ) : void
SetSelectedVariable ( string variableName ) : void
SetZoom ( double zoom ) : void

Private Methods

Method Description
AddNode ( GraphNode graphNode ) : void
OnBayesianNetworkStructureChanged ( object sender, BayesianNetwork args ) : void
RemoveNode ( GraphNode node ) : void
UpdateEdges ( GraphNode nodeOfInterest = null ) : void
UpdateNodeSizes ( ) : void
xRoot_MouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Method Details

GraphInspector() public method

public GraphInspector ( ) : System
return System

SetConfiguringVariable() public method

public SetConfiguringVariable ( string variableName ) : void
variableName string
return void

SetGraph() public method

Assigns a network to this graph inspector. The graph inspector uses this network's local probability descriptions and structure. Layout must be updated separately.
public SetGraph ( BayesianNetwork network, string>.IDictionary variableAbbreviations ) : void
network BayesianNetwork
variableAbbreviations string>.IDictionary
return void

SetGraphLayout() public method

Provides a graph layout for this inspector to use.
public SetGraphLayout ( Point>.IDictionary layout ) : void
layout Point>.IDictionary
return void

SetInferenceResults() public method

public SetInferenceResults ( DiscreteDistribution>.IDictionary results, int scenarioId, FAI evidence ) : void
results DiscreteDistribution>.IDictionary
scenarioId int
evidence FAI
return void

SetInterestVariables() public method

Configures the graph to emphasize the nodes listed.
public SetInterestVariables ( IEnumerable variableNames ) : void
variableNames IEnumerable
return void

SetLayoutOptions() public method

public SetLayoutOptions ( object options ) : void
options object
return void

SetSelectedVariable() public method

public SetSelectedVariable ( string variableName ) : void
variableName string
return void

SetZoom() public method

public SetZoom ( double zoom ) : void
zoom double
return void