pub struct Clusters {
pub groups: Vec<usize>,
pub period: u64,
}Expand description
Groups of agents that exchange messages at different rates: inside a group as usual,
between groups only every period ticks.
A copy between groups arrives at the first multiple of period at or after the tick it
would otherwise arrive at. This is the multirate idea of hierarchical co-simulation
(Hafner, Cooperative and Multirate Simulation Analysis, TU Wien, 2021): tightly
coupled parts synchronize often, the whole less often.
Fields§
§groups: Vec<usize>The group of each agent, indexed by agent. Agents missing from the list form a group of their own each.
period: u64Ticks between two exchanges across groups; positive. One changes nothing.
Trait Implementations§
impl Eq for Clusters
impl StructuralPartialEq for Clusters
Auto Trait Implementations§
impl Forget for Clusters
impl Freeze for Clusters
impl Move for Clusters
impl RefUnwindSafe for Clusters
impl Send for Clusters
impl Sync for Clusters
impl Unpin for Clusters
impl UnsafeUnpin for Clusters
impl UnwindSafe for Clusters
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