ILNumerics.Net
ILAsyncAlgorithm Class

ILNumerics.Net - numeric computing and plotting for .NET

ILNumerics.AlgorithmsILAsyncAlgorithm
ILNumerics.Net - numeric computing for .NET
base class for asynchronous algorithms
Declaration Syntax
C#Visual BasicVisual C++
public abstract class ILAsyncAlgorithm : ILMath
Public MustInherit Class ILAsyncAlgorithm _
	Inherits ILMath
public ref class ILAsyncAlgorithm abstract : public ILMath
Members
All MembersConstructorsMethodsPropertiesFieldsEvents



IconMemberDescription
ILAsyncAlgorithm(Control)
constructor creating a new ILAsyncAlgorithm object.

AlgorithmFunction(Object)
this function serves as a placeholder for your derived class method wich does the actual computing

AlgorithmFunctionTryWrapper(Object)
Cancel(Int32)
Cancel the algorithm.

CancelPending
informs about a pending cancelation

CompileParameter()()()
assemble parameter object i.o. to overgive to thread worker

GetResult()()()
query algorithm result

Kill(Int32)
Kills this algorithm thread.

m_cancelPending
m_control
m_lastMessage
m_lockObject
m_progress
m_result
m_state
m_thread
m_waitforRunning
OnAlgorithmFinished()()()
Additionally clean up after the algorithm has finished successfully.

OnProgressChanged()()()
Fires the ProgressChanged event.

OnStateChanged()()()
Fires the StateChanged event.

Progress
current progress value.

ProgressChanged
fires if the progress of the algorithm changes

Resume()()()
Resume algorithm

RunAsync()()()
Start algorithm asynchronously

RunSync()()()
Execute this algorithm and wait for finish

SetProgress(Double, String)
Set the current progress of the algorithm.

SetResult(Object)
SetState(ILAlgorithmState)
State
The current state of the algorithm. One out of the enumeration ILAlgorithmState.

StateChanged
fires whenever the state of the algorithm changes

Suspend()()()
halt the algorithm

Remarks
the abstract class implements an asynchronous algorithm class. It fires events for all state changes and for progress information. Algorithms derived from this class are capable of cancelling on user rewuest and to transparently invoke event signals in the context of a calling System.Windows.Form - even from the internal worker thread.
Inheritance Hierarchy
Object
ILMath
 ILAsyncAlgorithm
  SimpleAsyncSample

Assembly: ILNumerics.Net (Module: ILNumerics.Net) Version: 1.3.13.0 (0.9.29.0)