C# Class QACExperimenter.Approaches.BaseApproach

Base approach class to extend
Show file Open project: stewhir/recent-robust-qac Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
AutoCompleteQuery ( System.DateTime queryTime, string partialQuery, string fullQuery ) : AutoCompletionList

Needs to be overidden to do autocompletion.

Private Methods

Method Description
QueueEvaluationThread ( System.DateTime queryTime, string partialQuery, string query, AutoCompletionList autoCompletionList ) : void

Queue the evaluation thread

Method Details

AutoCompleteQuery() protected method

Needs to be overidden to do autocompletion.
protected AutoCompleteQuery ( System.DateTime queryTime, string partialQuery, string fullQuery ) : AutoCompletionList
queryTime System.DateTime
partialQuery string
fullQuery string
return AutoCompletionList

BaseApproach() public method

public BaseApproach ( int autoCompleteAfterNChars, StandardEvalOutput evalOutput, PrefixProfile queryPrefixProfile ) : System
autoCompleteAfterNChars int
evalOutput QACExperimenter.Evaluation.StandardEvalOutput
queryPrefixProfile PrefixProfile
return System

CreateAutoCompletionList() public method

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
return AutoCompletionList

InterleavedInput() public method

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
return void

SubmitQuery() public method

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

WaitForFinish() public method

Wait until all threads have finished
public WaitForFinish ( ) : void
return void