pub struct Decision<V> {
cpt: CPT<V>,
prospect: Prospect<V>,
selfish_status: DelayActionStatus,
sharing_statuses: BTreeMap<usize, ActionStatus>,
delay_selfish: u32,
}Fields§
§cpt: CPT<V>§prospect: Prospect<V>§selfish_status: DelayActionStatus§sharing_statuses: BTreeMap<usize, ActionStatus>§delay_selfish: u32Implementations§
Source§impl<V> Decision<V>
impl<V> Decision<V>
fn values_selfish(&self, ded: &DeducedOpinions<V>) -> [V; 2]where
V: MyFloat,
fn try_decide_selfish(&mut self, upd: &MyOpinionsUpd<'_, V>)where
V: MyFloat,
fn predict(&self, upd: &mut MyOpinionsUpd<'_, V>)where
V: MyFloat,
fn try_decide_sharing(
&mut self,
upd: &mut MyOpinionsUpd<'_, V>,
info_idx: usize,
) -> boolwhere
V: MyFloat,
pub fn reset<F>(&mut self, delay_selfish: u32, f: F)
Trait Implementations§
Auto Trait Implementations§
impl<V> Freeze for Decision<V>where
V: Freeze,
impl<V> RefUnwindSafe for Decision<V>where
V: RefUnwindSafe,
impl<V> Send for Decision<V>where
V: Send,
impl<V> Sync for Decision<V>where
V: Sync,
impl<V> Unpin for Decision<V>where
V: Unpin,
impl<V> UnwindSafe for Decision<V>where
V: UnwindSafe,
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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