pub struct GroundSim { /* private fields */ }
Expand description
Simulator that steps the ground MDP directly.
Implementations§
Trait Implementations§
Source§impl Simulator for GroundSim
impl Simulator for GroundSim
Source§fn simulate(&self, state: &State, action: Action) -> (State, GameVars)
fn simulate(&self, state: &State, action: Action) -> (State, GameVars)
Simulate one step from
state
with action
, returning the next state and game vars.Source§fn simulator_type(&self) -> SimulatorType
fn simulator_type(&self) -> SimulatorType
Whether this simulator works at the ground or abstract level.
Source§fn get_initial_state(&self, state: State) -> State
fn get_initial_state(&self, state: State) -> State
Transform a ground state into the appropriate simulator’s initial state.
Auto Trait Implementations§
impl Freeze for GroundSim
impl RefUnwindSafe for GroundSim
impl Send for GroundSim
impl Sync for GroundSim
impl Unpin for GroundSim
impl UnwindSafe for GroundSim
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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