Skip to main content

ActiveKnowledgeBase

Trait ActiveKnowledgeBase 

Source
pub trait ActiveKnowledgeBase: KnowledgeBaseTrait {
    // Required methods
    fn start_target(&mut self) -> Result<(), String>;
    fn stop_target(&mut self) -> Result<(), String>;
    fn submit_word(&mut self, word: &Word) -> Result<Word, String>;
    fn is_target_running(&self) -> bool;
}
Expand description

Trait representing an active knowledge base that can submit queries to a target

Required Methods§

Source

fn start_target(&mut self) -> Result<(), String>

Starts the target system for querying

Source

fn stop_target(&mut self) -> Result<(), String>

Stops the target system after querying

Source

fn submit_word(&mut self, word: &Word) -> Result<Word, String>

Submits a word to the target and returns the output

Source

fn is_target_running(&self) -> bool

Gets the current state of the target (started or stopped)

Implementors§