pub struct CoverageState { /* private fields */ }Expand description
One finite communication state and its initially active sensors.
Implementations§
Source§impl CoverageState
impl CoverageState
Sourcepub fn new(
scenario: u64,
step: u64,
graph: &SparseDistanceMatrix,
base_vertices: Vec<usize>,
broadcast_radius: f64,
) -> Result<Self>
pub fn new( scenario: u64, step: u64, graph: &SparseDistanceMatrix, base_vertices: Vec<usize>, broadcast_radius: f64, ) -> Result<Self>
Construct a state from a graph of every possible communication edge.
Sourcepub fn base_vertices(&self) -> &[usize]
pub fn base_vertices(&self) -> &[usize]
Sensors active before selecting a plan.
Sourcepub fn possible_edges(&self) -> &[KineticEdgeKey]
pub fn possible_edges(&self) -> &[KineticEdgeKey]
Communication edges available when both endpoints are active.
Trait Implementations§
Source§impl Clone for CoverageState
impl Clone for CoverageState
Source§fn clone(&self) -> CoverageState
fn clone(&self) -> CoverageState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoverageState
impl Debug for CoverageState
impl Eq for CoverageState
Source§impl PartialEq for CoverageState
impl PartialEq for CoverageState
impl StructuralPartialEq for CoverageState
Auto Trait Implementations§
impl Freeze for CoverageState
impl RefUnwindSafe for CoverageState
impl Send for CoverageState
impl Sync for CoverageState
impl Unpin for CoverageState
impl UnsafeUnpin for CoverageState
impl UnwindSafe for CoverageState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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