IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Base class for a variety of response evaluators. Calculates response at specific parameters, stores calculated responses in a list, etc. The current generic class can be used for differnt types of respnses (results) and different types of object for evaluation of responses, such as vector funcitons or optimization analyses. More...
Public Member Functions | |
ResponseEvaluatorWithStorageBase () | |
Creates a ResponseEvaluatorBase object. More... | |
ResponseEvaluatorWithStorageBase (TypeEvaluator evaluationFunction) | |
Creates a ResponseEvaluatorBase object with the specified response evaluator that will be used for response evaluation. More... | |
virtual void | EvaluateResponse (IVector parameters) |
Evaluates the response at specific parameters. More... | |
virtual void | EvaluateResponse (TypeData requestAndResponse) |
void | ClearResults () |
Removes all results from the list of results. The list is intended to store the results. More... | |
void | AddResult (TypeData result) |
Adds a new result to the list of results. The list is intended to store the results. More... | |
Protected Member Functions | |
abstract void | GetData (TypeData results) |
Copies input data from results object. More... | |
abstract TypeData | CopyResults (TypeData results) |
Creates and returns a copy of the speccified results object. More... | |
abstract void | CreateRequestThis (IVector parameters, ref TypeData request) |
Creates a request for response evaluation at the specified parameters, where request options are transcribed from the current response evaluator. More... | |
TypeData | CreateRequestThis (IVector parameters) |
Creates and returns request for response evaluation at the specified parameters, where request options are transcribed from the current response evaluator. More... | |
abstract void | EvaluateResponseThis (TypeData requestAndResponse) |
Evaluates the response. More... | |
Properties | |
object | Lock [get] |
This object's central lock object to be used by other object. Do not use this object for locking in class' methods, for this you should use InternalLock. More... | |
object | InternalLock [get] |
Used internally for locking access to internal fields. More... | |
virtual TypeData | LastResults [get, set] |
Results of the last evaluation of response performed by the current response evaluator. More... | |
virtual bool | AddResultsAutomatically [get, set] |
Flag indicated whether the last evaluated results are automatically added to the list of results when these results are set (by setting the LastResults property). More... | |
List< TypeData > | Results [get, protected set] |
List of calculated results. The list is intended to store the results. More... | |
virtual TypeData | this[int which] [get, set] |
abstract TypeEvaluator | EvaluationObject [get, set] |
![]() | |
object | Lock [get] |
Private Attributes | |
object | _mainLock = new object() |
object | _internalLock = new object() |
TypeData | _lastResults |
bool | _addResultsAutomatically = true |
List< TypeData > | _results |
Base class for a variety of response evaluators. Calculates response at specific parameters, stores calculated responses in a list, etc. The current generic class can be used for differnt types of respnses (results) and different types of object for evaluation of responses, such as vector funcitons or optimization analyses.
TypeResults | Type of the objects wheer results of evaluation response are stored. Type of objects that hold requests for evaluation of respone must be the same. |
TypeEvaluator | Type of the function that performs response calculation.</type> |
This class provides a generic way for performing evaluation of response at specified parameters and for storing a list of evaluated responses on the followng grounds:
* Response is evaluated by a special designated evaluation object.
* Input parameters for response evaluation are specified as vector.
* Evaluation object performs evaluation on basis of object of a special class that contains the input parameters, the request flags specifying what and how should be evaluated, and results.
$A Igor Jul08;
TypeData | : | class | |
TypeEvaluator | : | class |
|
inline |
Creates a ResponseEvaluatorBase object.
|
inline |
Creates a ResponseEvaluatorBase object with the specified response evaluator that will be used for response evaluation.
evaluationFunction | Evaluator object that is used for calculation of respones. |
|
protectedpure virtual |
Copies input data from results object.
results |
|
protectedpure virtual |
Creates and returns a copy of the speccified results object.
results | Results object to be copied. |
|
protectedpure virtual |
Creates a request for response evaluation at the specified parameters, where request options are transcribed from the current response evaluator.
parameters | Vector of parameters for which response will be calculated. |
request | Reference to the object where request data for response evaluation is written to. |
|
inlineprotected |
Creates and returns request for response evaluation at the specified parameters, where request options are transcribed from the current response evaluator.
parameters | Vector of parameters for which response will be calculated. |
|
protectedpure virtual |
Evaluates the response.
results | Object that must contain complete response evaluation request data, and where results of response evaluation will be stored. |
|
inlinevirtual |
Evaluates the response at specific parameters.
parameters |
|
inlinevirtual |
|
inline |
Removes all results from the list of results. The list is intended to store the results.
|
inline |
Adds a new result to the list of results. The list is intended to store the results.
result | Object containing results to be added. |
|
private |
|
private |
|
private |
|
private |
|
private |
|
get |
This object's central lock object to be used by other object. Do not use this object for locking in class' methods, for this you should use InternalLock.
|
getprotected |
Used internally for locking access to internal fields.
|
getset |
Results of the last evaluation of response performed by the current response evaluator.
|
getset |
Flag indicated whether the last evaluated results are automatically added to the list of results when these results are set (by setting the LastResults property).
Referenced by IG.Num.ResponseEvaluatorWithStorageVectorDtoBase< TypeResponseEvaluator >.CopyFromPlain(), and IG.Num.ResponseEvaluatorWithStorageAnalysisDtoBase< TypeResponseEvaluator >.CopyFromPlain().
|
getprotected set |
List of calculated results. The list is intended to store the results.
Referenced by IG.Num.ResponseEvaluatorWithStorageVectorDtoBase< TypeResponseEvaluator >.CopyFromPlain(), and IG.Num.ResponseEvaluatorWithStorageAnalysisDtoBase< TypeResponseEvaluator >.CopyFromPlain().
|
getset |
|
getset |