pub struct LabeledTransitionSystem {
pub num_states: usize,
pub num_labels: usize,
pub transitions: Vec<Transition>,
pub goal: Vec<bool>,
pub initial: Option<usize>,
}Expand description
An explicit labeled transition system. Self-loops are kept: they matter for synchronized products (merge-and-shrink), and are ignored where they are irrelevant (distances, saturated costs).
Fields§
§num_states: usize§num_labels: usize§transitions: Vec<Transition>§goal: Vec<bool>§initial: Option<usize>Implementations§
Source§impl LabeledTransitionSystem
impl LabeledTransitionSystem
Sourcepub fn goal_distances(&self, costs: &[u64]) -> Vec<Option<u64>>
pub fn goal_distances(&self, costs: &[u64]) -> Vec<Option<u64>>
Cheapest cost to reach a goal state from each state, under costs
(indexed by label). None = no goal reachable.
Trait Implementations§
Source§impl Clone for LabeledTransitionSystem
impl Clone for LabeledTransitionSystem
Source§impl Debug for LabeledTransitionSystem
impl Debug for LabeledTransitionSystem
Source§impl<'de> Deserialize<'de> for LabeledTransitionSystem
impl<'de> Deserialize<'de> for LabeledTransitionSystem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LabeledTransitionSystem
Source§impl PartialEq for LabeledTransitionSystem
impl PartialEq for LabeledTransitionSystem
Source§impl Serialize for LabeledTransitionSystem
impl Serialize for LabeledTransitionSystem
impl StructuralPartialEq for LabeledTransitionSystem
Auto Trait Implementations§
impl Forget for LabeledTransitionSystem
impl Freeze for LabeledTransitionSystem
impl Move for LabeledTransitionSystem
impl RefUnwindSafe for LabeledTransitionSystem
impl Send for LabeledTransitionSystem
impl Sync for LabeledTransitionSystem
impl Unpin for LabeledTransitionSystem
impl UnsafeUnpin for LabeledTransitionSystem
impl UnwindSafe for LabeledTransitionSystem
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