RFTester Tool for automated testing relevance feedback algorithms fro known-item search

Static Public Member Functions | Static Public Attributes | Static Protected Attributes | Static Private Member Functions | Static Private Attributes | List of all members
RFTesterBackend.Evaluator.EvaluationProcessFactory Class Reference

Factory class for creating evaluation processes form various sources. More...

## Static Public Member Functions
static void | InitFirstDisplay ()
| Initializes first display. More...
static EvaluationProcess | CreateBruteForceProcess (int numberOfTests=60)
| Creates brute force process with all the key components that can be found in the runtime. More...
static EvaluationProcess | CreateProcessFromJson (string jsonPath)
| Creates evaluation process from json blueprint. More...
static IEvaluationClassPar | PrepareClassPar (Type type)
| Creates an instance of evaluation class parameter. More...
static IEvaluationClassPar | PrepareClassPar (Type type, Dictionary< string, string > vals)
| Creates an instance of evaluation class parameter with additional parametrs. More...
static IEvaluationClassPar | PrepareClassPar (Type type, params object[] args)
| Creates an instance of evaluation class parameter with constructor parametrs. More...
static IEvaluationClassPar | PrepareClassPar (Type type, Dictionary< string, string > vals, params object[] args)
| Creates an instance of evaluation class parameter with additional parametrs and constructor parametrs. More...
static void | SetAdditionalParameters (IEvaluationClassPar cl, Dictionary< string, string > vals)
| Sets values to the evaluation class parameter. More...

## Static Public Attributes
static List< int > | FIRST_DISPLAY
| First display for uniform initialization. More...

## Static Protected Attributes
static log4net.ILog | logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType)

## Static Private Member Functions
static double | ParseDouble (string v)
static float | ParseFloat (string v)
static void | SetValue (EvaluationClassParAdditional p, string value)
| Sets value to the additional parameter. More...
static void | SetValueArray< T > (ref EvaluationClassParAdditional p, string value, Func< string, T > parse)
static List< IUser > | PrepareUsersForBruteForce ()
| Prepares users for brute force. More...
static List< EvaluationTarget > | PrepareTargetImages (int count)
| Prepares targets for evaluation. More...
static List< EvaluationTarget > | PrepareRandomTargetImages (int count)
| Prepares random images for evaluation. More...

## Static Private Attributes
static readonly NumberFormatInfo | nfi
| Number format used in json. More...

## Detailed Description

Factory class for creating evaluation processes form various sources.

## Member Function Documentation

## ◆ CreateBruteForceProcess()

static EvaluationProcess RFTesterBackend.Evaluator.EvaluationProcessFactory.CreateBruteForceProcess | ( | int | numberOfTests = `60` | ) |
| inlinestatic

Creates brute force process with all the key components that can be found in the runtime.

Number of targets is specified with parameter numberOfTests.

Parameters

  numberOfTests | default value is 60

Returns

## ◆ CreateProcessFromJson()

static EvaluationProcess RFTesterBackend.Evaluator.EvaluationProcessFactory.CreateProcessFromJson | ( | string | jsonPath | ) |
| inlinestatic

Creates evaluation process from json blueprint.

Parameters

  jsonPath |

Returns

## ◆ InitFirstDisplay()

static void RFTesterBackend.Evaluator.EvaluationProcessFactory.InitFirstDisplay | ( |  | ) |
| inlinestatic

Initializes first display.

## ◆ ParseDouble()

static double RFTesterBackend.Evaluator.EvaluationProcessFactory.ParseDouble | ( | string | v | ) |
| inlinestaticprivate

## ◆ ParseFloat()

static float RFTesterBackend.Evaluator.EvaluationProcessFactory.ParseFloat | ( | string | v | ) |
| inlinestaticprivate

## ◆ PrepareClassPar() [1/4]

static IEvaluationClassPar RFTesterBackend.Evaluator.EvaluationProcessFactory.PrepareClassPar | ( | Type | type | ) |
| inlinestatic

Creates an instance of evaluation class parameter.

Parameters

  type |

Returns

## ◆ PrepareClassPar() [2/4]

static IEvaluationClassPar RFTesterBackend.Evaluator.EvaluationProcessFactory.PrepareClassPar | ( | Type | type,
|  | Dictionary< string, string > | vals
| ) |  |
| inlinestatic

Creates an instance of evaluation class parameter with additional parametrs.

Parameters

  type |
  vals |

Returns

## ◆ PrepareClassPar() [3/4]

static IEvaluationClassPar RFTesterBackend.Evaluator.EvaluationProcessFactory.PrepareClassPar | ( | Type | type,
|  | Dictionary< string, string > | vals,
|  | params object[] | args
| ) |  |
| inlinestatic

Creates an instance of evaluation class parameter with additional parametrs and constructor parametrs.

Parameters

  type |
  vals |
  args |

Returns

## ◆ PrepareClassPar() [4/4]

static IEvaluationClassPar RFTesterBackend.Evaluator.EvaluationProcessFactory.PrepareClassPar | ( | Type | type,
|  | params object[] | args
| ) |  |
| inlinestatic

Creates an instance of evaluation class parameter with constructor parametrs.

Parameters

  type |
  args |

Returns

## ◆ PrepareRandomTargetImages()

static List<EvaluationTarget> RFTesterBackend.Evaluator.EvaluationProcessFactory.PrepareRandomTargetImages | ( | int | count | ) |
| inlinestaticprivate

Prepares random images for evaluation.

Parameters

  count |

Returns

## ◆ PrepareTargetImages()

static List<EvaluationTarget> RFTesterBackend.Evaluator.EvaluationProcessFactory.PrepareTargetImages | ( | int | count | ) |
| inlinestaticprivate

Prepares targets for evaluation.

Number of targets is specified with count argument.

Parameters

  count |

Returns

## ◆ PrepareUsersForBruteForce()

static List<IUser> RFTesterBackend.Evaluator.EvaluationProcessFactory.PrepareUsersForBruteForce | ( |  | ) |
| inlinestaticprivate

Prepares users for brute force.

Returns

## ◆ SetAdditionalParameters()

static void RFTesterBackend.Evaluator.EvaluationProcessFactory.SetAdditionalParameters | ( | IEvaluationClassPar | cl,
|  | Dictionary< string, string > | vals
| ) |  |
| inlinestatic

Sets values to the evaluation class parameter.

Parameters

  cl |
  vals |

## ◆ SetValue()

static void RFTesterBackend.Evaluator.EvaluationProcessFactory.SetValue | ( | EvaluationClassParAdditional | p,
|  | string | value
| ) |  |
| inlinestaticprivate

Sets value to the additional parameter.

Parameters

  p |
  value |

## ◆ SetValueArray< T >()

static void RFTesterBackend.Evaluator.EvaluationProcessFactory.SetValueArray< T > | ( | ref EvaluationClassParAdditional | p,
|  | string | value,
|  | Func< string, T > | parse
| ) |  |
| inlinestaticprivate

## Member Data Documentation

## ◆ FIRST_DISPLAY

List<int> RFTesterBackend.Evaluator.EvaluationProcessFactory.FIRST_DISPLAY
| static

Initial value:
= new List<int>() { 606500, 65050, 427400, 236050, 955050, 263100, 379450, 138450,
961150, 346500, 957900, 943000, 3300, 464450, 838700, 735200,
903650, 86900, 634450, 866650, 46150, 104350, 234300, 452950,
421950, 705900, 901000, 566050, 842750, 518150, 482450, 119200,
280100, 548100, 312000, 350200, 240550, 681150, 744350, 404250,
553150, 779300, 781550, 588950, 737350, 599500, 190600, 601700,
676850, 956200, 397800, 304600, 304550, 733300, 750200, 205050,
699050, 560950, 677100, 436100, 938250, 434150, 169000, 450450 }

First display for uniform initialization.

## ◆ logger

log4net.ILog RFTesterBackend.Evaluator.EvaluationProcessFactory.logger = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType)
| staticprotected

## ◆ nfi

readonly NumberFormatInfo RFTesterBackend.Evaluator.EvaluationProcessFactory.nfi
| staticprivate

Initial value:
= new NumberFormatInfo
{
NumberDecimalSeparator = "."
}

Number format used in json.

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

- RFTesterBackend/Evaluator/EvaluationProcessFactory.cs