RuntimeInner

Struct RuntimeInner 

Source
pub struct RuntimeInner<D>
where D: Driver<Triad>,
{ /* private fields */ }

Implementations§

Source§

impl<D> RuntimeInner<D>
where D: Driver<Triad>,

Source

pub fn new() -> Self

Create a new runtime

Source

pub fn fragment(&self) -> &FragTonnetz<D>

Get a reference to the fragment

Source

pub fn fragment_mut(&mut self) -> &mut FragTonnetz<D>

Get a mutable reference to the fragment

Source

pub fn orchestrator(&self) -> &Orchestrator

Get a reference to the orchestrator

Source

pub fn orchestrator_mut(&mut self) -> &mut Orchestrator

returns a mutable reference to the orchestrator

Source

pub const fn perf_tracker(&self) -> &PerformanceTracker

returns an immutable reference to the performance tracker

Source

pub fn perf_tracker_mut(&mut self) -> &mut PerformanceTracker

returns a mutable reference to the performance tracker

Source

pub fn performance_trend_report(&self) -> String

Get a performance trend report

Source

pub const fn scheduler(&self) -> &Scheduler

returns a reference to the scheduler

Source

pub fn scheduler_mut(&mut self) -> &mut Scheduler

returns a mutable reference to the scheduler

Source

pub const fn system_info(&self) -> &SystemInfo

returns an immutable reference to the system’s info

Source

pub fn system_info_mut(&mut self) -> &mut SystemInfo

returns a mutable reference to the system’s info

Source

pub fn task_queue(&self) -> &[Task]

returns a reference to the tasks stored in the scheduler

Source

pub fn task_queue_mut(&mut self) -> &mut Vec<Task>

returns a mutable reference to the task queue within the scheduler

Source

pub fn vnodes(&self) -> &HashMap<EdgeId, VNode<D>>

returns an immutable reference to the initialized virtual node’s

Source

pub fn vnodes_mut(&mut self) -> &mut HashMap<EdgeId, VNode<D>>

returns a mutable reference to the initialized virtual nodes

Source

pub fn set_fragment(&mut self, fragment: FragTonnetz<D>)

set the runtimes fragment to the given value

Source

pub fn set_orchestrator(&mut self, orchestrator: Orchestrator)

set the runtime’s orchestrator

Source

pub fn set_scheduler(&mut self, scheduler: Scheduler)

set the runtime’s scheduler

Source

pub fn with_fragment(self, fragment: FragTonnetz<D>) -> Self

consumes the current instance to create another with the given fragment

Source

pub fn with_orchestrator(self, orchestrator: Orchestrator) -> Self

consumes the current instance to create another with the given orchestrator

Source

pub fn with_scheduler(self, scheduler: Scheduler) -> Self

consumes the current instance to create another with the given scheduler

Source

pub fn update_performance_metrics(&mut self)

Update performance tracking with current metrics

Source§

impl<D> RuntimeInner<D>
where D: Driver<Triad>,

Source

pub fn adaptive_schedule(&mut self) -> Result<(), RuntimeError>
where D: TriadDriver,

Adaptive task scheduling based on system resources and task performance history

Source

pub fn add_triad(&mut self, triad: Triad) -> Result<EdgeId, RuntimeError>

Add a triad to the fragment

Source

pub fn auto_configure(&mut self) -> Result<(), RuntimeError>

Auto-configure the runtime based on available system resources

Source

pub fn completed_tasks(&self) -> Vec<&Task>

Source

pub fn coordinate_distributed_learning(&mut self) -> Result<usize, RuntimeError>
where D: TriadDriver,

Coordinate distributed learning with gradient sharing

Source

pub fn coordinate_knowledge_transfer(&mut self) -> Result<(), RuntimeError>
where D: TriadDriver,

Coordinate knowledge sharing between surface networks

Source

pub fn coordinate_learning(&mut self) -> Result<(), RuntimeError>
where D: TriadDriver,

coordinate learning between nodes

Source

pub fn execute_task(&mut self, task_id: usize) -> Result<(), RuntimeError>
where D: TriadDriver,

executes the task associated with the given identitifier

Source

pub fn execute_tasks(&mut self) -> Result<(), RuntimeError>
where D: TriadDriver,

Execute tasks in the queue

Source

pub fn get_vnode(&self, id: &EdgeId) -> Option<&VNode<D>>

returns an immutable reference to the node with the given identifier; if any

Source

pub fn get_vnode_mut(&mut self, id: &EdgeId) -> Option<&mut VNode<D>>

returns a mutable reference to the partition with the given identifier; if any

Source

pub fn init_complete_layer(&mut self) -> Result<(), RuntimeError>

Initialize the runtime with major and minor triads

Source

pub fn init_node_surfaces(&mut self) -> Result<(), RuntimeError>
where D: TriadDriver,

Initialize surface networks for all nodes in the fragment

Source

pub fn init_specialized_surfaces(&mut self) -> Result<(), RuntimeError>
where D: TriadDriver,

Initialize surface networks with class-specific tuning

Source

pub fn optimize_memory_allocation(&mut self) -> Result<(), RuntimeError>
where D: TriadDriver,

Optimize memory allocation across nodes

Source

pub fn optimize_surface_networks(&mut self) -> Result<(), RuntimeError>
where D: TriadDriver,

Optimize the surface networks across all nodes

Source

pub fn predict_task_resources(&self, task_type: &TaskType) -> (f32, f32)

Get predicted resource requirements for a task

Source

pub fn predictive_schedule( &mut self, look_ahead_ms: u64, ) -> Result<(), RuntimeError>
where D: TriadDriver,

Schedule tasks using predictive resource management

Source

pub fn prioritize_tonnetz_tasks(&mut self) -> Result<(), RuntimeError>
where D: TriadDriver,

Prioritize tasks based on observer position in Tonnetz space

Source

pub fn process_messages(&mut self) -> Result<(), RuntimeError>
where D: TriadDriver,

Process messages between nodes

Source

pub fn run_maintenance(&mut self) -> Result<Vec<usize>, RuntimeError>
where D: TriadDriver,

Run maintenance including knowledge coordination

Source

pub fn runtime_metrics(&self) -> ResourceMetrics

Get detailed resource metrics

Source

pub fn schedule_knowledge_transfer(&mut self, priority: usize) -> usize

Schedule a knowledge transfer task with the given priority

Source

pub fn schedule_memory_optimization(&mut self) -> Result<usize, RuntimeError>

Schedule memory optimization based on current memory usage

Source

pub fn schedule_task(&mut self, task_type: TaskType, priority: usize) -> usize

Schedule a task for execution

Source

pub fn system_health_report(&self) -> String

Generate a comprehensive system health report with performance insights

Source

pub fn tune_surface_networks(&mut self) -> Result<(), RuntimeError>
where D: TriadDriver,

Tune surface network parameters based on node performance

Source

pub fn voice_leading_distance( &self, from: &EdgeId, to: &EdgeId, ) -> Option<usize>

compute the vocal leading distance between two facets; see voice_leading_distance for more information

Trait Implementations§

Source§

impl<D> Clone for RuntimeInner<D>
where D: Driver<Triad> + Clone,

Source§

fn clone(&self) -> RuntimeInner<D>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<D> Debug for RuntimeInner<D>
where D: Driver<Triad> + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<D> Default for RuntimeInner<D>
where D: Driver<Triad>,

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<D> Execute<usize> for RuntimeInner<D>
where D: TriadDriver,

Source§

impl<D> ExecuteMut<usize> for RuntimeInner<D>
where D: TriadDriver,

Source§

type Output = Result<(), RuntimeError>

Source§

fn execute_mut(&mut self, rhs: usize) -> Self::Output

Auto Trait Implementations§

§

impl<D> Freeze for RuntimeInner<D>

§

impl<D> RefUnwindSafe for RuntimeInner<D>
where D: RefUnwindSafe,

§

impl<D> Send for RuntimeInner<D>

§

impl<D> Sync for RuntimeInner<D>

§

impl<D> Unpin for RuntimeInner<D>
where D: Unpin,

§

impl<D> UnwindSafe for RuntimeInner<D>
where D: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsWeight<T> for T
where T: Clone + IntoWeight<T>,

Source§

fn as_weight(&self) -> Weight<T>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<K, S> Identity<K> for S
where S: Borrow<K>, K: Identifier,

Source§

type Item = S

Source§

fn get(&self) -> &<S as Identity<K>>::Item

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> IntoWeight<T> for T

Source§

impl<A, B, C> PercentDifference<B> for A
where A: Clone, B: Sub<A, Output = C>, C: Div<A, Output = C>,

Source§

type Output = C

Source§

fn percent_diff(self, rhs: B) -> <A as PercentDifference<B>>::Output

Computes the percent difference between two values.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<Q> RawState for Q
where Q: Send + Sync + Debug,

Source§

fn __private__(&self) -> Seal

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more