C# Класс QACExperimenter.Approaches.BaseApproach

Base approach class to extend
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BaseApproach ( int autoCompleteAfterNChars, StandardEvalOutput evalOutput, PrefixProfile queryPrefixProfile ) : System
CreateAutoCompletionList ( IEnumerable allPrefixEntries, int defaultMinCutOff = 1 ) : AutoCompletionList

Create the autocompletion list from the prefix entries ready for evaluation sorting and output

InterleavedInput ( System.DateTime changeTime, string inputLine ) : void

Overide me to handle interleaved input (e.g. event-driven query classification)

SubmitQuery ( System.DateTime queryTime, string query ) : void
WaitForFinish ( ) : void

Wait until all threads have finished

Защищенные методы

Метод Описание
AutoCompleteQuery ( System.DateTime queryTime, string partialQuery, string fullQuery ) : AutoCompletionList

Needs to be overidden to do autocompletion.

Приватные методы

Метод Описание
QueueEvaluationThread ( System.DateTime queryTime, string partialQuery, string query, AutoCompletionList autoCompletionList ) : void

Queue the evaluation thread

Описание методов

AutoCompleteQuery() защищенный Метод

Needs to be overidden to do autocompletion.
protected AutoCompleteQuery ( System.DateTime queryTime, string partialQuery, string fullQuery ) : AutoCompletionList
queryTime System.DateTime
partialQuery string
fullQuery string
Результат AutoCompletionList

BaseApproach() публичный Метод

public BaseApproach ( int autoCompleteAfterNChars, StandardEvalOutput evalOutput, PrefixProfile queryPrefixProfile ) : System
autoCompleteAfterNChars int
evalOutput QACExperimenter.Evaluation.StandardEvalOutput
queryPrefixProfile PrefixProfile
Результат System

CreateAutoCompletionList() публичный Метод

Create the autocompletion list from the prefix entries ready for evaluation sorting and output
public CreateAutoCompletionList ( IEnumerable allPrefixEntries, int defaultMinCutOff = 1 ) : AutoCompletionList
allPrefixEntries IEnumerable
defaultMinCutOff int
Результат AutoCompletionList

InterleavedInput() публичный Метод

Overide me to handle interleaved input (e.g. event-driven query classification)
public InterleavedInput ( System.DateTime changeTime, string inputLine ) : void
changeTime System.DateTime
inputLine string
Результат void

SubmitQuery() публичный Метод

public SubmitQuery ( System.DateTime queryTime, string query ) : void
queryTime System.DateTime
query string
Результат void

WaitForFinish() публичный Метод

Wait until all threads have finished
public WaitForFinish ( ) : void
Результат void