Class TFitTaskWithThread

Unit

Declaration

type TFitTaskWithThread = class(TFitTask)

Description

Executes task solution in separate thread.

Hierarchy

Overview

Fields

Protected FDoneDisabled: boolean;
Protected FMainCalcThread: TMainCalcThread;

Methods

Public constructor Create(AOwner: TComponent; AEnableBackgroundVariation: boolean; ACurveScalingEnabled: boolean); overload;
Public destructor Destroy; override;
Public function GetAllDone: boolean; override;
Public function GetCurAbsMin: double; override;
Public function GetCurMin: double; override;
Public function GetCurMinInitialized: boolean; override;
Public function GetCurSqrMin: double; override;
Public procedure AbortAsyncOper;
Public procedure ComputeBackgroundPointsDoneSync;
Public procedure ComputeCurveBoundsDoneSync;
Public procedure ComputeCurvePositionsDoneSync;
Public procedure DestroyMainCalcThread;
Public procedure Done; override;
Public procedure DoneProcSync;
Public procedure MinimizeDifference; override;
Public procedure MinimizeDifferenceAgain; override;
Public procedure MinimizeNumberOfCurves; override;
Public procedure ShowCurMin; override;
Public procedure ShowCurMinSync;
Public procedure ShowProfileSync;
Public procedure StopAsyncOper; override;
Protected procedure RecreateMainCalcThread(ATask: TThreadMethod; AAllDone: TThreadMethod);

Properties

Public property DoneDisabled: boolean read FDoneDisabled write FDoneDisabled;

Description

Fields

Protected FDoneDisabled: boolean;
 
Protected FMainCalcThread: TMainCalcThread;
 

Methods

Public constructor Create(AOwner: TComponent; AEnableBackgroundVariation: boolean; ACurveScalingEnabled: boolean); overload;
 
Public destructor Destroy; override;
 
Public function GetAllDone: boolean; override;
 
Public function GetCurAbsMin: double; override;
 
Public function GetCurMin: double; override;

Methods implement synchronization to work in multithreading environment.

Public function GetCurMinInitialized: boolean; override;
 
Public function GetCurSqrMin: double; override;
 
Public procedure AbortAsyncOper;

Sets up termination flags and waits for actual termination of the thread.

Public procedure ComputeBackgroundPointsDoneSync;
 
Public procedure ComputeCurveBoundsDoneSync;
 
Public procedure ComputeCurvePositionsDoneSync;
 
Public procedure DestroyMainCalcThread;

Waits for thread termination.

Public procedure Done; override;
 
Public procedure DoneProcSync;
 
Public procedure MinimizeDifference; override;

Fits curves starting from given parameter set (initially or repeatedly).

Public procedure MinimizeDifferenceAgain; override;
 
Public procedure MinimizeNumberOfCurves; override;

Searches set of pattern curves fitting exprerimental data with given accuracy sequentially decreasing number of such curves.

Public procedure ShowCurMin; override;
 
Public procedure ShowCurMinSync;

TODO: methods should be implemented.

Public procedure ShowProfileSync;
 
Public procedure StopAsyncOper; override;

Sets up termination flags and returns. The method doesn't wait for actual termination of the thread.

Protected procedure RecreateMainCalcThread(ATask: TThreadMethod; AAllDone: TThreadMethod);

Suppresses calling Done.

Properties

Public property DoneDisabled: boolean read FDoneDisabled write FDoneDisabled;
 

Generated by PasDoc 0.15.0.