pub struct Network {
pub declarations: Declarations,
pub automata: IndexMap<String, Automaton>,
pub links: Vec<Link>,
pub initial_states: Vec<State>,
}Expand description
Represents a network of automata.
Fields§
§declarations: Declarations§automata: IndexMap<String, Automaton>§links: Vec<Link>§initial_states: Vec<State>Implementations§
Source§impl Network
impl Network
pub fn global_scope(&self) -> Scope<2>
pub fn transient_scope(&self) -> Scope<1>
Source§impl Network
impl Network
pub fn get_index_of_global_variable(&self, identifier: &str) -> Option<usize>
pub fn get_index_of_transient_variable(&self, identifier: &str) -> Option<usize>
pub fn get_automaton(&self, reference: &AutomatonReference) -> &Automaton
pub fn get_location(&self, reference: &LocationReference) -> &Location
pub fn get_edge(&self, reference: &EdgeReference) -> &Edge
pub fn get_destination(&self, reference: &DestinationReference) -> &Destination
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Network
impl<'de> Deserialize<'de> for Network
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 Network
impl StructuralPartialEq for Network
Auto Trait Implementations§
impl Freeze for Network
impl RefUnwindSafe for Network
impl Send for Network
impl Sync for Network
impl Unpin for Network
impl UnwindSafe for Network
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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