pub struct Exec<V: MyFloat>where
Open01: Distribution<V>,{Show 13 fields
pub enable_inhibition: bool,
pub graph: GraphB,
pub fnum_agents: V,
pub mean_degree: V,
pub sharer_trust: SharerTrustSamples<V>,
pub opinion: OpinionSamples<V>,
pub information: InformationSamples<V>,
pub informing: InformingParams<V>,
pub community_psi1: SupportLevelTable<V>,
pub probabilities: ProbabilitySamples<V>,
pub prospect: ProspectSamples<V>,
pub cpt: CptSamples<V>,
pub delay_selfish: u32,
}Fields§
§enable_inhibition: bool§graph: GraphB§fnum_agents: V§mean_degree: V§opinion: OpinionSamples<V>§information: InformationSamples<V>§informing: InformingParams<V>§community_psi1: SupportLevelTable<V>§probabilities: ProbabilitySamples<V>§prospect: ProspectSamples<V>§cpt: CptSamples<V>§delay_selfish: u32Trait Implementations§
Source§impl<V> Executor<V, AgentExt<V>, Instance> for Exec<V>where
V: MyFloat,
Open01: Distribution<V>,
Standard: Distribution<V>,
StandardNormal: Distribution<V>,
Exp1: Distribution<V>,
<V as SampleUniform>::Sampler: Sync + Send,
impl<V> Executor<V, AgentExt<V>, Instance> for Exec<V>where
V: MyFloat,
Open01: Distribution<V>,
Standard: Distribution<V>,
StandardNormal: Distribution<V>,
Exp1: Distribution<V>,
<V as SampleUniform>::Sampler: Sync + Send,
fn num_agents(&self) -> usize
fn graph(&self) -> &GraphB
fn execute<R>(
&self,
memory: &mut Memory<V, Ax>,
num_iter: u32,
rng: R,
) -> Vec<Stat>where
V: MyFloat,
Open01: Distribution<V>,
Standard: Distribution<V>,
StandardNormal: Distribution<V>,
Exp1: Distribution<V>,
R: Rng,
Ix: InstanceExt<V, R, Self>,
Ax: AgentExtTrait<V, Exec = Self, Ix = Ix>,
Self: Sized,
Source§impl<V, R> InstanceExt<V, R, Exec<V>> for Instancewhere
V: MyFloat,
Open01: Distribution<V>,
Standard: Distribution<V>,
StandardNormal: Distribution<V>,
Exp1: Distribution<V>,
R: Rng,
<V as SampleUniform>::Sampler: Sync + Send,
impl<V, R> InstanceExt<V, R, Exec<V>> for Instancewhere
V: MyFloat,
Open01: Distribution<V>,
Standard: Distribution<V>,
StandardNormal: Distribution<V>,
Exp1: Distribution<V>,
R: Rng,
<V as SampleUniform>::Sampler: Sync + Send,
fn from_exec(exec: &Exec<V>, rng: &mut R) -> Self
fn is_continued(&self, _: &Exec<V>) -> bool
fn get_informers_with<'a>( ins: &mut InstanceWrapper<'a, Exec<V>, V, R, Self>, t: u32, ) -> Vec<(AgentIdx, InfoContent<'a, V>)>
Auto Trait Implementations§
impl<V> Freeze for Exec<V>
impl<V> RefUnwindSafe for Exec<V>
impl<V> Send for Exec<V>
impl<V> Sync for Exec<V>
impl<V> Unpin for Exec<V>
impl<V> UnwindSafe for Exec<V>
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