pub struct PlanarCoverageModel { /* private fields */ }Expand description
Declared geometric contract for the planar controlled-boundary theorem.
The constructor checks the exact radius inequality from assumption A2. The caller declares A3: nodes lie in one compact connected planar domain. The caller declares geometric A4: the fence cycle maps to that domain’s connected piecewise-linear boundary. The checker validates the graph, unique labels, fence edges, radii, and relative chain. It cannot recover the domain from connectivity data.
Implementations§
Source§impl PlanarCoverageModel
impl PlanarCoverageModel
Sourcepub fn new(broadcast_radius: f64, sensing_radius: f64) -> Result<Self>
pub fn new(broadcast_radius: f64, sensing_radius: f64) -> Result<Self>
Construct the controlled-boundary radius contract.
Both radii must be finite and positive. The exact dyadic values must
satisfy 3 * sensing_radius^2 >= broadcast_radius^2.
Sourcepub fn broadcast_radius(self) -> f64
pub fn broadcast_radius(self) -> f64
Radius used to construct the communication graph.
Sourcepub fn sensing_radius(self) -> f64
pub fn sensing_radius(self) -> f64
Radius of each declared sensing disc.
Trait Implementations§
Source§impl Clone for PlanarCoverageModel
impl Clone for PlanarCoverageModel
Source§fn clone(&self) -> PlanarCoverageModel
fn clone(&self) -> PlanarCoverageModel
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 moreimpl Copy for PlanarCoverageModel
Source§impl Debug for PlanarCoverageModel
impl Debug for PlanarCoverageModel
Source§impl PartialEq for PlanarCoverageModel
impl PartialEq for PlanarCoverageModel
impl StructuralPartialEq for PlanarCoverageModel
Auto Trait Implementations§
impl Freeze for PlanarCoverageModel
impl RefUnwindSafe for PlanarCoverageModel
impl Send for PlanarCoverageModel
impl Sync for PlanarCoverageModel
impl Unpin for PlanarCoverageModel
impl UnsafeUnpin for PlanarCoverageModel
impl UnwindSafe for PlanarCoverageModel
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