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

Inheritance: System.MarshalByRefObject, IFWDisposable
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Свойство Type Description
DecrementQueueCount void
HandleTaskUpdate void
IncrementQueueCount void
ParseFiler_WordformUpdated void
Work void

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
DisposeManagedResources ( ) : void

Private Methods

Méthode 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 méthode

protected DisposeManagedResources ( ) : void
Résultat void

GetQueueSize() public méthode

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

IsOneWord() public static méthode

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

ParserScheduler() public méthode

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

ReloadGrammarAndLexicon() public méthode

Reload Grammar And Lexicon
public ReloadGrammarAndLexicon ( ) : void
Résultat void

ScheduleOneWordformForTryAWord() public méthode

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
Résultat void

ScheduleOneWordformForUpdate() public méthode

public ScheduleOneWordformForUpdate ( IWfiWordform wordform, ParserPriority priority ) : void
wordform IWfiWordform
priority ParserPriority
Résultat void

ScheduleWordformsForUpdate() public méthode

public ScheduleWordformsForUpdate ( IEnumerable wordforms, ParserPriority priority ) : void
wordforms IEnumerable
priority ParserPriority
Résultat void