pub struct CoverageSpecification { /* private fields */ }Expand description
Finite or affine coverage specification over PlanarCoverageModel.
Implementations§
Source§impl CoverageSpecification
impl CoverageSpecification
Sourcepub fn new(
vertex_count: usize,
model: PlanarCoverageModel,
modulus: u32,
fence: CoverageFence,
failable_vertices: Vec<usize>,
failure_budget: usize,
states: Vec<CoverageState>,
limits: CoverageLimits,
) -> Result<Self>
pub fn new( vertex_count: usize, model: PlanarCoverageModel, modulus: u32, fence: CoverageFence, failable_vertices: Vec<usize>, failure_budget: usize, states: Vec<CoverageState>, limits: CoverageLimits, ) -> Result<Self>
Construct a finite coverage specification.
Sourcepub fn from_kinetic(
filtration: &KineticFiltration,
scenario: u64,
model: PlanarCoverageModel,
modulus: u32,
fence: CoverageFence,
failable_vertices: Vec<usize>,
failure_budget: usize,
base_vertices: Vec<usize>,
limits: CoverageLimits,
) -> Result<Self>
pub fn from_kinetic( filtration: &KineticFiltration, scenario: u64, model: PlanarCoverageModel, modulus: u32, fence: CoverageFence, failable_vertices: Vec<usize>, failure_budget: usize, base_vertices: Vec<usize>, limits: CoverageLimits, ) -> Result<Self>
Compile the complete affine communication threshold schedule.
Sourcepub fn vertex_count(&self) -> usize
pub fn vertex_count(&self) -> usize
Number of sensor labels shared by every state.
Sourcepub fn model(&self) -> PlanarCoverageModel
pub fn model(&self) -> PlanarCoverageModel
Declared planar coverage model.
Sourcepub fn fence(&self) -> &CoverageFence
pub fn fence(&self) -> &CoverageFence
Canonical protected fence cycle.
Sourcepub fn failable_vertices(&self) -> &[usize]
pub fn failable_vertices(&self) -> &[usize]
Sensors that the failure quantifier may remove.
Sourcepub fn failure_budget(&self) -> usize
pub fn failure_budget(&self) -> usize
Largest simultaneous failure count.
Sourcepub fn source(&self) -> &CoverageSource
pub fn source(&self) -> &CoverageSource
Origin and completeness scope of the state list.
Sourcepub fn states(&self) -> &[CoverageState]
pub fn states(&self) -> &[CoverageState]
Canonical state list.
Sourcepub fn components(
&self,
actions: &[CoverageAction],
) -> Result<Vec<CoverageComponent>>
pub fn components( &self, actions: &[CoverageAction], ) -> Result<Vec<CoverageComponent>>
Decompose the state-action incidence relation into exact components.
Trait Implementations§
Source§impl Clone for CoverageSpecification
impl Clone for CoverageSpecification
Source§fn clone(&self) -> CoverageSpecification
fn clone(&self) -> CoverageSpecification
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 CoverageSpecification
impl Debug for CoverageSpecification
Source§impl PartialEq for CoverageSpecification
impl PartialEq for CoverageSpecification
impl StructuralPartialEq for CoverageSpecification
Auto Trait Implementations§
impl Freeze for CoverageSpecification
impl RefUnwindSafe for CoverageSpecification
impl Send for CoverageSpecification
impl Sync for CoverageSpecification
impl Unpin for CoverageSpecification
impl UnsafeUnpin for CoverageSpecification
impl UnwindSafe for CoverageSpecification
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<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