IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Neural.Applications.AnnAppDemo Class Reference

Form for parametric tests and other viewing operations performed on ANN models. More...

+ Inheritance diagram for IG.Neural.Applications.AnnAppDemo:
+ Collaboration diagram for IG.Neural.Applications.AnnAppDemo:

Public Member Functions

 AnnAppDemo ()
 
 AnnAppDemo (INeuralModel model)
 Construct a new window for ANN based predictions, with the model specified. More...
 
 AnnAppDemo (string neuralDirectoryPath)
 Construct a new window for ANN based predictions, with the specified base directory of the model. More...
 
virtual void InitLayout ()
 Initializes the layout. Eventually, this specifies which tabs appear on the form and wich do not. More...
 
virtual void Initform ()
 Initializes the form, including the layout by calling the InitLayout method. More...
 
void SetNeuralModel (INeuralModel model)
 Sets the ANN-based model used by the current form. More...
 
void SetNeuralScriptShellPath (string path)
 Sets the directory for More...
 

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used. More...
 

Protected Attributes

string _workingDirectory = Directory.GetCurrentDirectory()
 
string _neuralScriptShellPath = null
 
NeuralParametricDemoAboutWindow _aboutWindow
 

Properties

bool IsTabPageVisibleCommand [get, set]
 Whether the "Command" tab is visible or not. More...
 
bool IsTabPageVisibleAbout [get, set]
 Whether the "About" tab is visible or not. More...
 
bool IsTabPageVisibleParametric [get, set]
 Whether the parametric test tab is visible or not. More...
 
bool IsTabPageVisibleParametricMultiple [get, set]
 Whether the multiple curve parametric test tab is visible or not. More...
 
bool IsTabPageVisibleParametric2D [get, set]
 Whether the 2D parametric test tab is visible or not. More...
 
bool IsTabPageVisibleTrain [get, set]
 Whether the training tab is included or not. More...
 
bool IsTabPageVisibleData [get, set]
 Whether the data tab is included or not. More...
 
bool IsTabPageVisibleSampling [get, set]
 Whether the sampling tab is visible or not. More...
 
string WorkingDirectory [get, set]
 Working directory of the outer form. More...
 
INeuralModel NeuralModel [get, protected set]
 Neural network - based model. More...
 
string NeuralScriptShellPath [get, protected set]
 Path of the working directory for the ANN-based approximation approximation scripts. More...
 
INeuralApproximator TrainedNetwork [get]
 Traint artificial neural network. More...
 
InputOutputDataDefiniton NeuralDataDefinition [get]
 Neural data definition. More...
 
NeuralParametricDemoAboutWindow AboutWindow [get]
 Window that shows information about the software. More...
 
- Properties inherited from IG.Neural.INeuralModelContainer
INeuralModel NeuralModel [get]
 Artificial neural network - based model. More...
 

Private Member Functions

void NeuralParametricDemo_HelpEventHandlers (object sender, KeyEventArgs e)
 
void NeuralParametricDemo_KeyUp (object sender, KeyEventArgs e)
 
void tabControl_KeyUp (object sender, KeyEventArgs e)
 
void btnSavePrediction_Click (object sender, EventArgs e)
 Saves image of the prediction control to a file that is chosen via a file dialog box. More...
 
void btnPrintPrediction_Click (object sender, EventArgs e)
 Prints the image of the prediction control to a file that is chosen via a file dialog box. More...
 
void btnSaveParametricTest_Click (object sender, EventArgs e)
 Saves image of the parametric test control to a file that is chosen via a file dialog box. More...
 
void btnPrintParametricTest_Click (object sender, EventArgs e)
 Prints the image of the parametric test control to a file that is chosen via a file dialog box. More...
 
void btnSwitchAbout_Click (object sender, EventArgs e)
 Switches the About tab on or off. More...
 
void btnSwitch2dParametric_Click (object sender, EventArgs e)
 Switches the 2D parametric tests tab on or off. More...
 
void InitializeComponent ()
 Required method for Designer support - do not modify the contents of this method with the code editor. More...
 

Private Attributes

INeuralModel _neuralModel
 
System.ComponentModel.IContainer components = null
 Required designer variable. More...
 
System.Windows.Forms.TextBox tbInfoLine
 
System.Windows.Forms.TabControl tabControlAnnApp
 
System.Windows.Forms.TabPage tpPrediction
 
System.Windows.Forms.TabPage tpParmetric
 
Forms.NeuralPredictionControl neuralPredictionControl1
 
NeuralParametricTest neuralParametricTest1
 
System.Windows.Forms.Button btnSavePrediction
 
System.Windows.Forms.Button btnPrintPrediction
 
System.Windows.Forms.Button btnSaveParametricTest
 
System.Windows.Forms.Button btnPrintParametricTest
 
System.Windows.Forms.TabPage tpAbout
 
System.Windows.Forms.TabPage tpCommand
 
System.Windows.Forms.Label lblTitleCommand
 
System.Windows.Forms.Button btnSwitch2dParametric
 
System.Windows.Forms.Button btnSwitchAbout
 
System.Windows.Forms.TabPage tpParametric2d
 
NeuralParametricTest2d neuralParametricTest2d1
 
System.Windows.Forms.TabPage tpTrain
 
System.Windows.Forms.TabPage tpData
 
NeuralTrainingControl neuralTrainingControl1
 
NeuralDataControl neuralDataControl1
 
System.Windows.Forms.TabPage tpParametricMultiple
 
System.Windows.Forms.TabPage tpSampling
 
NeuralParametricTestMultiple neuralParametricTestMultiple1
 
NeuralSamplingControl neuralSamplingControl1
 
NeuralAboutControlToDelete abautNeurAppPnl
 

Detailed Description

Form for parametric tests and other viewing operations performed on ANN models.

$A Igor Apr13 Jun13;

Constructor & Destructor Documentation

IG.Neural.Applications.AnnAppDemo.AnnAppDemo ( )
inline
IG.Neural.Applications.AnnAppDemo.AnnAppDemo ( INeuralModel  model)
inline

Construct a new window for ANN based predictions, with the model specified.

Parameters
modelANN - base model, contains input and output data definitions and
IG.Neural.Applications.AnnAppDemo.AnnAppDemo ( string  neuralDirectoryPath)
inline

Construct a new window for ANN based predictions, with the specified base directory of the model.

Parameters
neuralDirectoryPathDirectory containing all data for the ANN-based model.

Member Function Documentation

virtual void IG.Neural.Applications.AnnAppDemo.InitLayout ( )
inlinevirtual

Initializes the layout. Eventually, this specifies which tabs appear on the form and wich do not.

Constructors call the Initform method that call this method.

This should be overridden in derived classes, and overridden method should not call the base method.

Reimplemented in IG.Neural.Applications.AnnAppDemoExperimental.

virtual void IG.Neural.Applications.AnnAppDemo.Initform ( )
inlinevirtual

Initializes the form, including the layout by calling the InitLayout method.

This method is called in constructors.

This might be overridden in derived classes, but usually this is not necessary. The overridden methods should call this method from the base class.

Reimplemented in IG.Neural.Applications.AnnAppDemoExperimental.

void IG.Neural.Applications.AnnAppDemo.SetNeuralModel ( INeuralModel  model)
inline

Sets the ANN-based model used by the current form.

Parameters
modelANN based model that is set.

Because of this dedicated method, the setter of the NeuralModel property can be non-public.

Implements IG.Neural.INeuralModelContainer.

void IG.Neural.Applications.AnnAppDemo.SetNeuralScriptShellPath ( string  path)
inline

Sets the directory for

Parameters
path
void IG.Neural.Applications.AnnAppDemo.NeuralParametricDemo_HelpEventHandlers ( object  sender,
KeyEventArgs  e 
)
inlineprivate
void IG.Neural.Applications.AnnAppDemo.NeuralParametricDemo_KeyUp ( object  sender,
KeyEventArgs  e 
)
inlineprivate
void IG.Neural.Applications.AnnAppDemo.tabControl_KeyUp ( object  sender,
KeyEventArgs  e 
)
inlineprivate
void IG.Neural.Applications.AnnAppDemo.btnSavePrediction_Click ( object  sender,
EventArgs  e 
)
inlineprivate

Saves image of the prediction control to a file that is chosen via a file dialog box.

References IG.Forms.UtilForms.SaveControlFileDialogJpeg().

void IG.Neural.Applications.AnnAppDemo.btnPrintPrediction_Click ( object  sender,
EventArgs  e 
)
inlineprivate

Prints the image of the prediction control to a file that is chosen via a file dialog box.

References IG.Forms.UtilForms.PrintControl().

void IG.Neural.Applications.AnnAppDemo.btnSaveParametricTest_Click ( object  sender,
EventArgs  e 
)
inlineprivate

Saves image of the parametric test control to a file that is chosen via a file dialog box.

References IG.Forms.UtilForms.SaveControlFileDialogJpeg().

void IG.Neural.Applications.AnnAppDemo.btnPrintParametricTest_Click ( object  sender,
EventArgs  e 
)
inlineprivate

Prints the image of the parametric test control to a file that is chosen via a file dialog box.

References IG.Forms.UtilForms.PrintControl().

void IG.Neural.Applications.AnnAppDemo.btnSwitchAbout_Click ( object  sender,
EventArgs  e 
)
inlineprivate

Switches the About tab on or off.

void IG.Neural.Applications.AnnAppDemo.btnSwitch2dParametric_Click ( object  sender,
EventArgs  e 
)
inlineprivate

Switches the 2D parametric tests tab on or off.

override void IG.Neural.Applications.AnnAppDemo.Dispose ( bool  disposing)
inlineprotected

Clean up any resources being used.

Parameters
disposingtrue if managed resources should be disposed; otherwise, false.
void IG.Neural.Applications.AnnAppDemo.InitializeComponent ( )
inlineprivate

Required method for Designer support - do not modify the contents of this method with the code editor.

Member Data Documentation

string IG.Neural.Applications.AnnAppDemo._workingDirectory = Directory.GetCurrentDirectory()
protected
INeuralModel IG.Neural.Applications.AnnAppDemo._neuralModel
private
string IG.Neural.Applications.AnnAppDemo._neuralScriptShellPath = null
protected
NeuralParametricDemoAboutWindow IG.Neural.Applications.AnnAppDemo._aboutWindow
protected
System.ComponentModel.IContainer IG.Neural.Applications.AnnAppDemo.components = null
private

Required designer variable.

System.Windows.Forms.TextBox IG.Neural.Applications.AnnAppDemo.tbInfoLine
private
System.Windows.Forms.TabControl IG.Neural.Applications.AnnAppDemo.tabControlAnnApp
private
System.Windows.Forms.TabPage IG.Neural.Applications.AnnAppDemo.tpPrediction
private
System.Windows.Forms.TabPage IG.Neural.Applications.AnnAppDemo.tpParmetric
private
Forms.NeuralPredictionControl IG.Neural.Applications.AnnAppDemo.neuralPredictionControl1
private
NeuralParametricTest IG.Neural.Applications.AnnAppDemo.neuralParametricTest1
private
System.Windows.Forms.Button IG.Neural.Applications.AnnAppDemo.btnSavePrediction
private
System.Windows.Forms.Button IG.Neural.Applications.AnnAppDemo.btnPrintPrediction
private
System.Windows.Forms.Button IG.Neural.Applications.AnnAppDemo.btnSaveParametricTest
private
System.Windows.Forms.Button IG.Neural.Applications.AnnAppDemo.btnPrintParametricTest
private
System.Windows.Forms.TabPage IG.Neural.Applications.AnnAppDemo.tpAbout
private
System.Windows.Forms.TabPage IG.Neural.Applications.AnnAppDemo.tpCommand
private
System.Windows.Forms.Label IG.Neural.Applications.AnnAppDemo.lblTitleCommand
private
System.Windows.Forms.Button IG.Neural.Applications.AnnAppDemo.btnSwitch2dParametric
private
System.Windows.Forms.Button IG.Neural.Applications.AnnAppDemo.btnSwitchAbout
private
System.Windows.Forms.TabPage IG.Neural.Applications.AnnAppDemo.tpParametric2d
private
NeuralParametricTest2d IG.Neural.Applications.AnnAppDemo.neuralParametricTest2d1
private
System.Windows.Forms.TabPage IG.Neural.Applications.AnnAppDemo.tpTrain
private
System.Windows.Forms.TabPage IG.Neural.Applications.AnnAppDemo.tpData
private
NeuralTrainingControl IG.Neural.Applications.AnnAppDemo.neuralTrainingControl1
private
NeuralDataControl IG.Neural.Applications.AnnAppDemo.neuralDataControl1
private
System.Windows.Forms.TabPage IG.Neural.Applications.AnnAppDemo.tpParametricMultiple
private
System.Windows.Forms.TabPage IG.Neural.Applications.AnnAppDemo.tpSampling
private
NeuralParametricTestMultiple IG.Neural.Applications.AnnAppDemo.neuralParametricTestMultiple1
private
NeuralSamplingControl IG.Neural.Applications.AnnAppDemo.neuralSamplingControl1
private
NeuralAboutControlToDelete IG.Neural.Applications.AnnAppDemo.abautNeurAppPnl
private

Property Documentation

bool IG.Neural.Applications.AnnAppDemo.IsTabPageVisibleCommand
getset

Whether the "Command" tab is visible or not.

bool IG.Neural.Applications.AnnAppDemo.IsTabPageVisibleAbout
getset

Whether the "About" tab is visible or not.

bool IG.Neural.Applications.AnnAppDemo.IsTabPageVisibleParametric
getset

Whether the parametric test tab is visible or not.

Referenced by IG.Neural.Applications.ProgramAnnApp.Main().

bool IG.Neural.Applications.AnnAppDemo.IsTabPageVisibleParametricMultiple
getset

Whether the multiple curve parametric test tab is visible or not.

bool IG.Neural.Applications.AnnAppDemo.IsTabPageVisibleParametric2D
getset

Whether the 2D parametric test tab is visible or not.

bool IG.Neural.Applications.AnnAppDemo.IsTabPageVisibleTrain
getset

Whether the training tab is included or not.

Referenced by IG.Neural.Applications.ProgramAnnApp.Main().

bool IG.Neural.Applications.AnnAppDemo.IsTabPageVisibleData
getset

Whether the data tab is included or not.

Referenced by IG.Neural.Applications.ProgramAnnApp.Main().

bool IG.Neural.Applications.AnnAppDemo.IsTabPageVisibleSampling
getset

Whether the sampling tab is visible or not.

This tab performs sampling on the basis of an analytical function.

Referenced by IG.Neural.Applications.ProgramAnnApp.Main().

string IG.Neural.Applications.AnnAppDemo.WorkingDirectory
getset

Working directory of the outer form.

INeuralModel IG.Neural.Applications.AnnAppDemo.NeuralModel
getprotected set

Neural network - based model.

Contains data definition and trained neural network approximator.

string IG.Neural.Applications.AnnAppDemo.NeuralScriptShellPath
getprotected set

Path of the working directory for the ANN-based approximation approximation scripts.

INeuralApproximator IG.Neural.Applications.AnnAppDemo.TrainedNetwork
get

Traint artificial neural network.

InputOutputDataDefiniton IG.Neural.Applications.AnnAppDemo.NeuralDataDefinition
get

Neural data definition.

NeuralParametricDemoAboutWindow IG.Neural.Applications.AnnAppDemo.AboutWindow
get

Window that shows information about the software.

Help is also accessible through that window.


The documentation for this class was generated from the following files: