C# Class SIL.FieldWorks.WordWorks.Parser.ParserScheduler

Inheritance: System.MarshalByRefObject, IFWDisposable
Mostrar archivo Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Property Type Description
DecrementQueueCount void
HandleTaskUpdate void
IncrementQueueCount void
ParseFiler_WordformUpdated void
Work void

Public Methods

Method Description
GetQueueSize ( ParserPriority priority ) : int

returns the number of the Wordforms in the low priority queue.

IsOneWord ( string sWord ) : bool

Determine if the wordform is a single word or a phrase

ParserScheduler ( FdoCache cache, IdleQueue idleQueue, string dataDir ) : System

Initializes a new instance of the ParserScheduler class.

ReloadGrammarAndLexicon ( ) : void

Reload Grammar And Lexicon

ScheduleOneWordformForTryAWord ( string form, bool fDoTrace, int sSelectTraceMorphs ) : void

this is done with a string rather than an hvo so that we can use it when the user is just testing different things, which might not even be real words, and certainly might not be in the WordformInventory yet.

ScheduleOneWordformForUpdate ( IWfiWordform wordform, ParserPriority priority ) : void
ScheduleWordformsForUpdate ( IEnumerable wordforms, ParserPriority priority ) : void

Protected Methods

Method Description
DisposeManagedResources ( ) : void

Private Methods

Method Description
DecrementQueueCount ( ParserPriority priority ) : void
HandleTaskUpdate ( SIL.FieldWorks.WordWorks.Parser.TaskReport task ) : void
IncrementQueueCount ( ParserPriority priority ) : void
ParseFiler_WordformUpdated ( object sender, SIL.FieldWorks.WordWorks.Parser.WordformUpdatedEventArgs e ) : void
Work ( ParserWork>.IQueueAccessor queueAccessor ) : void

Method Details

DisposeManagedResources() protected method

protected DisposeManagedResources ( ) : void
return void

GetQueueSize() public method

returns the number of the Wordforms in the low priority queue.
public GetQueueSize ( ParserPriority priority ) : int
priority ParserPriority
return int

IsOneWord() public static method

Determine if the wordform is a single word or a phrase
public static IsOneWord ( string sWord ) : bool
sWord string wordform
return bool

ParserScheduler() public method

Initializes a new instance of the ParserScheduler class.
public ParserScheduler ( FdoCache cache, IdleQueue idleQueue, string dataDir ) : System
cache FdoCache
idleQueue IdleQueue
dataDir string
return System

ReloadGrammarAndLexicon() public method

Reload Grammar And Lexicon
public ReloadGrammarAndLexicon ( ) : void
return void

ScheduleOneWordformForTryAWord() public method

this is done with a string rather than an hvo so that we can use it when the user is just testing different things, which might not even be real words, and certainly might not be in the WordformInventory yet.
public ScheduleOneWordformForTryAWord ( string form, bool fDoTrace, int sSelectTraceMorphs ) : void
form string
fDoTrace bool whether or not to trace the parse
sSelectTraceMorphs int list of msa hvos to limit trace to
return void

ScheduleOneWordformForUpdate() public method

public ScheduleOneWordformForUpdate ( IWfiWordform wordform, ParserPriority priority ) : void
wordform IWfiWordform
priority ParserPriority
return void

ScheduleWordformsForUpdate() public method

public ScheduleWordformsForUpdate ( IEnumerable wordforms, ParserPriority priority ) : void
wordforms IEnumerable
priority ParserPriority
return void