pub struct LabelledPetriNet {
pub activity_key: ActivityKey,
pub initial_marking: Marking,
pub labels: Vec<Option<Activity>>,
pub place2output_transitions: Vec<Vec<usize>>,
pub transition2input_places: Vec<Vec<usize>>,
pub transition2output_places: Vec<Vec<usize>>,
pub transition2input_places_cardinality: Vec<Vec<u64>>,
pub transition2output_places_cardinality: Vec<Vec<u64>>,
}Fields§
§activity_key: ActivityKey§initial_marking: Marking§labels: Vec<Option<Activity>>§place2output_transitions: Vec<Vec<usize>>§transition2input_places: Vec<Vec<usize>>§transition2output_places: Vec<Vec<usize>>§transition2input_places_cardinality: Vec<Vec<u64>>§transition2output_places_cardinality: Vec<Vec<u64>>Implementations§
Source§impl LabelledPetriNet
impl LabelledPetriNet
pub fn new() -> Self
pub fn new_empty_language() -> Self
pub fn get_number_of_places(&self) -> usize
pub fn get_initial_marking(&self) -> &Marking
pub fn is_transition_silent(&self, transition: TransitionIndex) -> bool
pub fn get_transition_label( &self, transition: TransitionIndex, ) -> Option<Activity>
pub fn add_place(&mut self) -> usize
pub fn get_initial_marking_mut(&mut self) -> &mut Marking
pub fn add_transition(&mut self, label: Option<Activity>) -> TransitionIndex
pub fn add_transition_place_arc( &mut self, from_transition: TransitionIndex, to_place: usize, cardinality: u64, ) -> Result<()>
pub fn add_place_transition_arc( &mut self, from_place: usize, to_transition: TransitionIndex, cardinality: u64, ) -> Result<()>
pub fn incidence_vector(&self, transition: TransitionIndex) -> Vec<i128>
pub fn max_transition_input_arc_cardinality(&self) -> u64
Trait Implementations§
Source§impl Clone for LabelledPetriNet
impl Clone for LabelledPetriNet
Source§fn clone(&self) -> LabelledPetriNet
fn clone(&self) -> LabelledPetriNet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LabelledPetriNet
impl Debug for LabelledPetriNet
Source§impl Display for LabelledPetriNet
impl Display for LabelledPetriNet
Source§impl Exportable for LabelledPetriNet
impl Exportable for LabelledPetriNet
Source§impl From<DeterministicFiniteAutomaton> for LabelledPetriNet
impl From<DeterministicFiniteAutomaton> for LabelledPetriNet
Source§fn from(value: DeterministicFiniteAutomaton) -> Self
fn from(value: DeterministicFiniteAutomaton) -> Self
Converts to this type from the input type.
Source§impl From<DirectlyFollowsGraph> for LabelledPetriNet
impl From<DirectlyFollowsGraph> for LabelledPetriNet
Source§fn from(value: DirectlyFollowsGraph) -> Self
fn from(value: DirectlyFollowsGraph) -> Self
Converts to this type from the input type.
Source§impl From<DirectlyFollowsModel> for LabelledPetriNet
impl From<DirectlyFollowsModel> for LabelledPetriNet
Source§fn from(value: DirectlyFollowsModel) -> LabelledPetriNet
fn from(value: DirectlyFollowsModel) -> LabelledPetriNet
Converts to this type from the input type.
Source§impl From<LabelledPetriNet> for LolaNet
impl From<LabelledPetriNet> for LolaNet
Source§fn from(value: LabelledPetriNet) -> Self
fn from(value: LabelledPetriNet) -> Self
Converts to this type from the input type.
Source§impl From<LolaNet> for LabelledPetriNet
impl From<LolaNet> for LabelledPetriNet
Source§impl From<PetriNetMarkupLanguage> for LabelledPetriNet
impl From<PetriNetMarkupLanguage> for LabelledPetriNet
Source§fn from(value: PetriNetMarkupLanguage) -> Self
fn from(value: PetriNetMarkupLanguage) -> Self
Converts to this type from the input type.
Source§impl From<ProcessTree> for LabelledPetriNet
impl From<ProcessTree> for LabelledPetriNet
Source§fn from(value: ProcessTree) -> Self
fn from(value: ProcessTree) -> Self
Converts to this type from the input type.
Source§impl From<ProcessTreeMarkupLanguage> for LabelledPetriNet
impl From<ProcessTreeMarkupLanguage> for LabelledPetriNet
Source§fn from(value: ProcessTreeMarkupLanguage) -> Self
fn from(value: ProcessTreeMarkupLanguage) -> Self
Converts to this type from the input type.
Source§impl From<StochasticDeterministicFiniteAutomaton> for LabelledPetriNet
impl From<StochasticDeterministicFiniteAutomaton> for LabelledPetriNet
Source§fn from(value: StochasticDeterministicFiniteAutomaton) -> Self
fn from(value: StochasticDeterministicFiniteAutomaton) -> Self
Converts to this type from the input type.
Source§impl From<StochasticDirectlyFollowsModel> for LabelledPetriNet
impl From<StochasticDirectlyFollowsModel> for LabelledPetriNet
Source§fn from(value: StochasticDirectlyFollowsModel) -> LabelledPetriNet
fn from(value: StochasticDirectlyFollowsModel) -> LabelledPetriNet
Converts to this type from the input type.
Source§impl From<StochasticLabelledPetriNet> for LabelledPetriNet
impl From<StochasticLabelledPetriNet> for LabelledPetriNet
Source§fn from(value: StochasticLabelledPetriNet) -> Self
fn from(value: StochasticLabelledPetriNet) -> Self
Converts to this type from the input type.
Source§impl From<StochasticProcessTree> for LabelledPetriNet
impl From<StochasticProcessTree> for LabelledPetriNet
Source§fn from(value: StochasticProcessTree) -> Self
fn from(value: StochasticProcessTree) -> Self
Converts to this type from the input type.
Source§impl FromStr for LabelledPetriNet
impl FromStr for LabelledPetriNet
Source§impl Graphable for LabelledPetriNet
impl Graphable for LabelledPetriNet
fn to_dot(&self) -> Result<VisualGraph>
Source§impl HasActivityKey for LabelledPetriNet
impl HasActivityKey for LabelledPetriNet
fn activity_key(&self) -> &ActivityKey
fn activity_key_mut(&mut self) -> &mut ActivityKey
Source§impl Importable for LabelledPetriNet
impl Importable for LabelledPetriNet
Source§impl TranslateActivityKey for LabelledPetriNet
impl TranslateActivityKey for LabelledPetriNet
Source§fn translate_using_activity_key(&mut self, to_activity_key: &mut ActivityKey)
fn translate_using_activity_key(&mut self, to_activity_key: &mut ActivityKey)
Change the activity key of this object, by translating all mentions of activities to the new activity key (which will be updated with activity labels it did not have yet.).
This is a potentially expensive operation. If only a part of the activities will be used, then consider using an ActivityKeyTranslator directly.
The activity key of this object will be updated too, so the activity keys will be equivalent afterwards.
Source§impl TryFrom<&LabelledPetriNet> for PetriNet
impl TryFrom<&LabelledPetriNet> for PetriNet
Auto Trait Implementations§
impl Freeze for LabelledPetriNet
impl RefUnwindSafe for LabelledPetriNet
impl Send for LabelledPetriNet
impl Sync for LabelledPetriNet
impl Unpin for LabelledPetriNet
impl UnwindSafe for LabelledPetriNet
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<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