pub struct Path {
ta: GeneralThresholdAutomaton,
parameter_assignment: HashMap<Parameter, u32>,
configurations: Vec<Configuration>,
transitions: Vec<Transition>,
}Expand description
Concrete path in a GeneralThresholdAutomaton
This struct represents a concrete path in a GeneralThresholdAutomaton,
which consists of a sequence of configurations and transitions between them.
Fields§
§ta: GeneralThresholdAutomatonThe threshold automaton this path belongs to
parameter_assignment: HashMap<Parameter, u32>Parameter assignment for the path
configurations: Vec<Configuration>Configurations of the path
transitions: Vec<Transition>Transitions of the path
Implementations§
Source§impl Path
impl Path
Sourcepub fn get_parameter_value(&self, param: &Parameter) -> Option<u32>
pub fn get_parameter_value(&self, param: &Parameter) -> Option<u32>
Get the value of parameter param in the path
Sourcepub fn parameter_values(&self) -> impl Iterator<Item = (&Parameter, &u32)>
pub fn parameter_values(&self) -> impl Iterator<Item = (&Parameter, &u32)>
Returns an iterator over the parameters and their values in the path
Sourcepub fn configurations(&self) -> impl Iterator<Item = &Configuration>
pub fn configurations(&self) -> impl Iterator<Item = &Configuration>
Iterator over the configurations of the path
Sourcepub fn transitions(&self) -> impl Iterator<Item = &Transition>
pub fn transitions(&self) -> impl Iterator<Item = &Transition>
Iterator over the transitions of the path
Sourcepub fn display_compact(&self) -> String
pub fn display_compact(&self) -> String
Get a string representation of the path
Trait Implementations§
impl StructuralPartialEq for Path
Auto Trait Implementations§
impl Freeze for Path
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnwindSafe for Path
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