pub struct ChordalNetwork { /* private fields */ }Expand description
The minimal constraints of a consistent STN on the edges of a chordal supergraph of its
constraint graph, as computed by Stn::partial_path_consistency.
For every pair in the graph (Self::contains), Self::upper and Self::lower equal
the bounds of the MinimalNetwork; other pairs are not computed.
The graph holds every constrained pair (bounded or not) plus the fill edges of the
triangulation.
Implementations§
Source§impl ChordalNetwork
impl ChordalNetwork
Sourcepub fn time_point_count(&self) -> usize
pub fn time_point_count(&self) -> usize
Number of time points.
Sourcepub fn contains(&self, a: TimePoint, b: TimePoint) -> bool
pub fn contains(&self, a: TimePoint, b: TimePoint) -> bool
Whether the minimal constraint between a and b was computed: a == b, or the pair
is an edge of the chordal graph. False for unknown handles.
Sourcepub fn upper(&self, from: TimePoint, to: TimePoint) -> Option<Ticks>
pub fn upper(&self, from: TimePoint, to: TimePoint) -> Option<Ticks>
Tightest upper bound on t_to - t_from; None if unbounded, or if the pair is not in
the graph (see Self::contains) or a handle is unknown.
Trait Implementations§
Source§impl Clone for ChordalNetwork
impl Clone for ChordalNetwork
Source§impl Debug for ChordalNetwork
impl Debug for ChordalNetwork
impl Eq for ChordalNetwork
Source§impl PartialEq for ChordalNetwork
impl PartialEq for ChordalNetwork
impl StructuralPartialEq for ChordalNetwork
Auto Trait Implementations§
impl Forget for ChordalNetwork
impl Freeze for ChordalNetwork
impl Move for ChordalNetwork
impl RefUnwindSafe for ChordalNetwork
impl Send for ChordalNetwork
impl Sync for ChordalNetwork
impl Unpin for ChordalNetwork
impl UnsafeUnpin for ChordalNetwork
impl UnwindSafe for ChordalNetwork
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