pub enum LabelledEdge {
Requirement(CycleEdge),
LowerCase(ContingentId),
UpperCase(ContingentId),
}Expand description
One edge of the labelled distance graph of an Stnu, named by what supplied it.
Variants§
Requirement(CycleEdge)
A requirement bound, as in an STN NegativeCycle.
LowerCase(ContingentId)
The lower-case edge A -> C of weight lo of a contingent link: the possibility that
the duration takes its minimum.
UpperCase(ContingentId)
The upper-case edge C -> A of weight -hi of a contingent link: the possibility that
the duration takes its maximum.
Implementations§
Source§impl LabelledEdge
impl LabelledEdge
Sourcepub fn resolve(
self,
stnu: &Stnu,
) -> Result<(TimePoint, TimePoint, Ticks), Error>
pub fn resolve( self, stnu: &Stnu, ) -> Result<(TimePoint, TimePoint, Ticks), Error>
The edge as (tail, head, weight) in stnu, meaning t_head - t_tail <= weight for
requirements and the extreme durations for the labelled edges.
§Errors
Error::UnknownTimePointif the constraint or link does not belong tostnu.Error::Overflowif a bound cannot be negated.
Trait Implementations§
Source§impl Clone for LabelledEdge
impl Clone for LabelledEdge
impl Copy for LabelledEdge
Source§impl Debug for LabelledEdge
impl Debug for LabelledEdge
impl Eq for LabelledEdge
Source§impl Hash for LabelledEdge
impl Hash for LabelledEdge
Source§impl PartialEq for LabelledEdge
impl PartialEq for LabelledEdge
impl StructuralPartialEq for LabelledEdge
Auto Trait Implementations§
impl Forget for LabelledEdge
impl Freeze for LabelledEdge
impl Move for LabelledEdge
impl RefUnwindSafe for LabelledEdge
impl Send for LabelledEdge
impl Sync for LabelledEdge
impl Unpin for LabelledEdge
impl UnsafeUnpin for LabelledEdge
impl UnwindSafe for LabelledEdge
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