pub struct TspEngine { /* private fields */ }Expand description
Unified TSP engine implementing DemoEngine.
This provides a proper DemoEngine implementation that:
- Loads from YAML
- Produces deterministic states
- Supports TUI/WASM parity verification
Trait Implementations§
Source§impl DemoEngine for TspEngine
impl DemoEngine for TspEngine
Source§type StepResult = TspStepResult
type StepResult = TspStepResult
Result of a single step.
Source§fn from_yaml(yaml: &str) -> Result<Self, DemoError>
fn from_yaml(yaml: &str) -> Result<Self, DemoError>
Create engine from YAML configuration string. Read more
Source§fn from_config(config: Self::Config) -> Self
fn from_config(config: Self::Config) -> Self
Create engine from config struct.
Source§fn reset_with_seed(&mut self, seed: u64)
fn reset_with_seed(&mut self, seed: u64)
Reset with a new seed.
Source§fn step(&mut self) -> Self::StepResult
fn step(&mut self) -> Self::StepResult
Execute one step (deterministic given state + seed).
Source§fn is_complete(&self) -> bool
fn is_complete(&self) -> bool
Check if simulation is complete/converged.
Source§fn step_count(&self) -> u64
fn step_count(&self) -> u64
Get current step number.
Source§fn falsification_criteria(&self) -> Vec<FalsificationCriterion>
fn falsification_criteria(&self) -> Vec<FalsificationCriterion>
Get falsification criteria from config.
Source§fn evaluate_criteria(&self) -> Vec<CriterionResult>
fn evaluate_criteria(&self) -> Vec<CriterionResult>
Evaluate all criteria against current state.
Source§fn metamorphic_relations(&self) -> Vec<MetamorphicRelation>
fn metamorphic_relations(&self) -> Vec<MetamorphicRelation>
Get metamorphic relations for this demo.
Source§fn verify_mr(&self, mr: &MetamorphicRelation) -> MrResult
fn verify_mr(&self, mr: &MetamorphicRelation) -> MrResult
Verify a specific metamorphic relation.
Source§fn is_verified(&self) -> bool
fn is_verified(&self) -> bool
Check if all criteria pass.
Source§fn verify_all_mrs(&self) -> Vec<MrResult>
fn verify_all_mrs(&self) -> Vec<MrResult>
Verify all metamorphic relations.
Auto Trait Implementations§
impl Freeze for TspEngine
impl RefUnwindSafe for TspEngine
impl Send for TspEngine
impl Sync for TspEngine
impl Unpin for TspEngine
impl UnsafeUnpin for TspEngine
impl UnwindSafe for TspEngine
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