Enum renforce::util::TimePeriod
[−]
[src]
pub enum TimePeriod { EPISODES(usize), TIMESTEPS(usize), OR(Box<TimePeriod>, Box<TimePeriod>), }
Some length of time experienced by an agent
Variants
EPISODES(usize)
A time period stored as a number of episodes
TIMESTEPS(usize)
A time period stored as a number of individual timesteps
OR(Box<TimePeriod>, Box<TimePeriod>)
Time period ends when first or second one ends
Methods
impl TimePeriod
[src]
fn is_none(&self) -> bool
Returns whether or not self represents an empty time period
fn dec(&self, done: bool) -> TimePeriod
Returns the time period remaing after one time step
Trait Implementations
impl Debug for TimePeriod
[src]
impl Clone for TimePeriod
[src]
fn clone(&self) -> TimePeriod
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more