[][src]Struct momba_explore::State

pub struct State<V> { /* fields omitted */ }

A state of an automaton network.

Every state keeps track of the locations the automata of the network are in, the values of the global variables, and a potentially infinite set of clock valuations using the respective TimeType.

Implementations

impl<V> State<V>[src]

pub fn get_location_of<'e, T: TimeType>(
    &self,
    explorer: &'e Explorer<T>,
    automaton_name: &str
) -> &'e String
[src]

Returns the name of the location the automaton with the provided name is in.

Panics in case the state has not been produced by the provided explorer or there is no automaton with the provided name in the automaton network.

pub fn get_global_value<T: TimeType>(
    &self,
    explorer: &Explorer<T>,
    identifier: &str
) -> &Value
[src]

Returns the value of the provided global variable.

Panics in case the state has not been produced by the provided explorer or there is no global variable with the provided name in the automaton network.

pub fn get_transient_value(&self, network: &Network, identifier: &str) -> &Value[src]

Returns the value of the provided transient variable.

Panics in case the state has not been produced by the provided explorer or there is no transient variable with the provided name in the automaton network.

pub fn valuations(&self) -> &V[src]

Returns the clock valuations associated with the state.

Trait Implementations

impl<V: Clone> Clone for State<V>[src]

impl<V: Debug> Debug for State<V>[src]

impl<'de, V> Deserialize<'de> for State<V> where
    V: Deserialize<'de>, 
[src]

impl<V: Eq> Eq for State<V>[src]

impl<V: Hash> Hash for State<V>[src]

impl<V: PartialEq> PartialEq<State<V>> for State<V>[src]

impl<V> Serialize for State<V> where
    V: Serialize
[src]

impl<V> StructuralEq for State<V>[src]

impl<V> StructuralPartialEq for State<V>[src]

Auto Trait Implementations

impl<V> RefUnwindSafe for State<V> where
    V: RefUnwindSafe
[src]

impl<V> Send for State<V> where
    V: Send
[src]

impl<V> Sync for State<V> where
    V: Sync
[src]

impl<V> Unpin for State<V> where
    V: Unpin
[src]

impl<V> UnwindSafe for State<V> where
    V: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.