pub struct ArchitectureSimulator { /* private fields */ }Expand description
A fő szimulátor motor
Implementations§
Source§impl ArchitectureSimulator
impl ArchitectureSimulator
Sourcepub fn register_architecture(&self, arch: Architecture)
pub fn register_architecture(&self, arch: Architecture)
Regisztrál egy architektúrát a szimulátorban
Sourcepub fn get_architecture(&self, id: &str) -> Option<Architecture>
pub fn get_architecture(&self, id: &str) -> Option<Architecture>
Lekér egy architektúrát ID alapján
Sourcepub fn list_architectures(&self) -> Vec<Architecture>
pub fn list_architectures(&self) -> Vec<Architecture>
Listázza az összes regisztrált architektúrát
Sourcepub fn run_simulation(
&self,
arch_id: &str,
config: &SimulationConfig,
) -> Option<SimulationMetrics>
pub fn run_simulation( &self, arch_id: &str, config: &SimulationConfig, ) -> Option<SimulationMetrics>
Futtat egy szimulációt egy architektúrán
Sourcepub fn run_stress_test(&self, arch_id: &str) -> Option<StressTestResult>
pub fn run_stress_test(&self, arch_id: &str) -> Option<StressTestResult>
Stresszteszt: fokozatosan növeli a terhelést a töréspont megtalálásáig
Sourcepub fn compare_architectures(
&self,
arch_id_a: &str,
arch_id_b: &str,
) -> Option<ComparisonResult>
pub fn compare_architectures( &self, arch_id_a: &str, arch_id_b: &str, ) -> Option<ComparisonResult>
Összehasonlít két architektúrát
Sourcepub fn get_learned_patterns(&self) -> HashMap<String, f64>
pub fn get_learned_patterns(&self) -> HashMap<String, f64>
Lekérdezi a tanult mintákat
Sourcepub fn get_events(&self) -> Vec<SimulationEvent>
pub fn get_events(&self) -> Vec<SimulationEvent>
Lekérdezi a szimulációs eseményeket
Sourcepub fn clear_results(&self)
pub fn clear_results(&self)
Törli az összes szimulációs eredményt
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArchitectureSimulator
impl RefUnwindSafe for ArchitectureSimulator
impl Send for ArchitectureSimulator
impl Sync for ArchitectureSimulator
impl Unpin for ArchitectureSimulator
impl UnsafeUnpin for ArchitectureSimulator
impl UnwindSafe for ArchitectureSimulator
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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