pub struct CrvSessionManager { /* private fields */ }Expand description
CRV Session Manager: coordinates all stage encoders and manages sessions.
Implementations§
Source§impl CrvSessionManager
impl CrvSessionManager
Sourcepub fn new(config: CrvConfig) -> Self
pub fn new(config: CrvConfig) -> Self
Create a new session manager with the given configuration.
Sourcepub fn create_session(
&mut self,
session_id: SessionId,
coordinate: TargetCoordinate,
) -> CrvResult<()>
pub fn create_session( &mut self, session_id: SessionId, coordinate: TargetCoordinate, ) -> CrvResult<()>
Create a new session for a given target coordinate.
Sourcepub fn add_stage_i(
&mut self,
session_id: &str,
data: &StageIData,
) -> CrvResult<Vec<f32>>
pub fn add_stage_i( &mut self, session_id: &str, data: &StageIData, ) -> CrvResult<Vec<f32>>
Add Stage I data to a session.
Sourcepub fn add_stage_ii(
&mut self,
session_id: &str,
data: &StageIIData,
) -> CrvResult<Vec<f32>>
pub fn add_stage_ii( &mut self, session_id: &str, data: &StageIIData, ) -> CrvResult<Vec<f32>>
Add Stage II data to a session.
Sourcepub fn add_stage_iii(
&mut self,
session_id: &str,
data: &StageIIIData,
) -> CrvResult<Vec<f32>>
pub fn add_stage_iii( &mut self, session_id: &str, data: &StageIIIData, ) -> CrvResult<Vec<f32>>
Add Stage III data to a session.
Sourcepub fn add_stage_iv(
&mut self,
session_id: &str,
data: &StageIVData,
) -> CrvResult<Vec<f32>>
pub fn add_stage_iv( &mut self, session_id: &str, data: &StageIVData, ) -> CrvResult<Vec<f32>>
Add Stage IV data to a session.
Sourcepub fn run_stage_v(
&mut self,
session_id: &str,
probe_queries: &[(&str, u8, Vec<f32>)],
k: usize,
) -> CrvResult<StageVData>
pub fn run_stage_v( &mut self, session_id: &str, probe_queries: &[(&str, u8, Vec<f32>)], k: usize, ) -> CrvResult<StageVData>
Run Stage V interrogation on a session.
Probes the accumulated session data with specified queries.
Sourcepub fn run_stage_vi(&mut self, session_id: &str) -> CrvResult<StageVIData>
pub fn run_stage_vi(&mut self, session_id: &str) -> CrvResult<StageVIData>
Run Stage VI composite modeling on a session.
Sourcepub fn find_convergence(
&self,
coordinate: &str,
min_similarity: f32,
) -> CrvResult<ConvergenceResult>
pub fn find_convergence( &self, coordinate: &str, min_similarity: f32, ) -> CrvResult<ConvergenceResult>
Find convergence across multiple sessions targeting the same coordinate.
This is the core multi-viewer matching operation: given sessions from different viewers targeting the same coordinate, find which aspects of their signal line data converge (agree).
Sourcepub fn get_session_embeddings(
&self,
session_id: &str,
) -> CrvResult<Vec<CrvSessionEntry>>
pub fn get_session_embeddings( &self, session_id: &str, ) -> CrvResult<Vec<CrvSessionEntry>>
Get all embeddings for a session.
Sourcepub fn session_entry_count(&self, session_id: &str) -> usize
pub fn session_entry_count(&self, session_id: &str) -> usize
Get the number of entries in a session.
Sourcepub fn session_count(&self) -> usize
pub fn session_count(&self) -> usize
Get the number of active sessions.
Sourcepub fn remove_session(&mut self, session_id: &str) -> bool
pub fn remove_session(&mut self, session_id: &str) -> bool
Remove a session.
Sourcepub fn stage_i_encoder(&self) -> &StageIEncoder
pub fn stage_i_encoder(&self) -> &StageIEncoder
Get access to the Stage I encoder for direct operations.
Sourcepub fn stage_ii_encoder(&self) -> &StageIIEncoder
pub fn stage_ii_encoder(&self) -> &StageIIEncoder
Get access to the Stage II encoder for direct operations.
Sourcepub fn stage_iv_encoder(&self) -> &StageIVEncoder
pub fn stage_iv_encoder(&self) -> &StageIVEncoder
Get access to the Stage IV encoder for direct operations.
Sourcepub fn stage_v_engine(&self) -> &StageVEngine
pub fn stage_v_engine(&self) -> &StageVEngine
Get access to the Stage V engine for direct operations.
Sourcepub fn stage_vi_modeler(&self) -> &StageVIModeler
pub fn stage_vi_modeler(&self) -> &StageVIModeler
Get access to the Stage VI modeler for direct operations.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CrvSessionManager
impl RefUnwindSafe for CrvSessionManager
impl Send for CrvSessionManager
impl Sync for CrvSessionManager
impl Unpin for CrvSessionManager
impl UnwindSafe for CrvSessionManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more