pub struct CollusionRingGenerator { /* private fields */ }Expand description
Generates collusion rings from available employee and vendor pools.
Implementations§
Source§impl CollusionRingGenerator
impl CollusionRingGenerator
Sourcepub fn generate(
&mut self,
employee_ids: &[String],
vendor_ids: &[String],
start_date: NaiveDate,
months: u32,
) -> Vec<CollusionRing>
pub fn generate( &mut self, employee_ids: &[String], vendor_ids: &[String], start_date: NaiveDate, months: u32, ) -> Vec<CollusionRing>
Generate collusion rings and advance them over the simulation period.
Creates 1-3 rings (resources permitting) from the supplied employee and
vendor ID pools, picks ring types appropriate to the available entities,
populates each ring with Conspirator members, and then advances every
ring month-by-month.
Auto Trait Implementations§
impl Freeze for CollusionRingGenerator
impl RefUnwindSafe for CollusionRingGenerator
impl Send for CollusionRingGenerator
impl Sync for CollusionRingGenerator
impl Unpin for CollusionRingGenerator
impl UnsafeUnpin for CollusionRingGenerator
impl UnwindSafe for CollusionRingGenerator
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