pub struct SimulationOrchestrator { /* private fields */ }Expand description
Simulation Orchestrator - coordinates parameter extraction, simulation, and result injection
Implementations§
Source§impl SimulationOrchestrator
impl SimulationOrchestrator
Sourcepub fn register(
&mut self,
name: impl Into<String>,
simulation: Arc<dyn PhysicsSimulation>,
)
pub fn register( &mut self, name: impl Into<String>, simulation: Arc<dyn PhysicsSimulation>, )
Register a simulation type
Sourcepub async fn extract_parameters(
&self,
entity_iri: &str,
simulation_type: &str,
) -> PhysicsResult<SimulationParameters>
pub async fn extract_parameters( &self, entity_iri: &str, simulation_type: &str, ) -> PhysicsResult<SimulationParameters>
Extract parameters from RDF graph
Sourcepub async fn run(
&self,
simulation_type: &str,
params: SimulationParameters,
) -> PhysicsResult<SimulationResult>
pub async fn run( &self, simulation_type: &str, params: SimulationParameters, ) -> PhysicsResult<SimulationResult>
Run simulation
Sourcepub async fn inject_results(
&self,
result: &SimulationResult,
) -> PhysicsResult<()>
pub async fn inject_results( &self, result: &SimulationResult, ) -> PhysicsResult<()>
Inject results back to RDF
Sourcepub async fn execute_workflow(
&self,
entity_iri: &str,
simulation_type: &str,
) -> PhysicsResult<SimulationResult>
pub async fn execute_workflow( &self, entity_iri: &str, simulation_type: &str, ) -> PhysicsResult<SimulationResult>
Full simulation workflow: extract → run → inject
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimulationOrchestrator
impl !RefUnwindSafe for SimulationOrchestrator
impl Send for SimulationOrchestrator
impl Sync for SimulationOrchestrator
impl Unpin for SimulationOrchestrator
impl UnsafeUnpin for SimulationOrchestrator
impl !UnwindSafe for SimulationOrchestrator
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
Mutably borrows from an owned value. Read more
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>
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 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>
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