pub struct BusinessProcessModelAndNotation {
pub collaboration_index: Option<usize>,
pub collaboration_id: Option<String>,
pub definitions_index: usize,
pub definitions_id: String,
pub participants: Vec<BPMNParticipant>,
pub elements: Vec<BPMNElement>,
pub sequence_flows: Vec<BPMNSequenceFlow>,
pub message_flows: Vec<BPMNMessageFlow>,
/* private fields */
}Fields§
§collaboration_index: Option<usize>§collaboration_id: Option<String>§definitions_index: usize§definitions_id: String§participants: Vec<BPMNParticipant>white-box pools/participants
elements: Vec<BPMNElement>§sequence_flows: Vec<BPMNSequenceFlow>§message_flows: Vec<BPMNMessageFlow>Implementations§
Source§impl BusinessProcessModelAndNotation
impl BusinessProcessModelAndNotation
pub fn number_of_elements(&self) -> usize
pub fn number_of_sequence_flows(&self) -> usize
pub fn number_of_message_flows(&self) -> usize
pub fn all_elements_ref(&self) -> Vec<&BPMNElement>
Sourcepub fn index_2_element(&self, index: usize) -> Option<&BPMNElement>
pub fn index_2_element(&self, index: usize) -> Option<&BPMNElement>
find an element with the given index
Sourcepub fn index_2_object(&self, index: usize) -> Option<&dyn BPMNObject>
pub fn index_2_object(&self, index: usize) -> Option<&dyn BPMNObject>
find the object of the given index
Source§impl BusinessProcessModelAndNotation
impl BusinessProcessModelAndNotation
pub fn import_from_reader(
reader: &mut dyn BufRead,
) -> Result<BusinessProcessModelAndNotation, Error>where
BusinessProcessModelAndNotation: Sized,
Source§impl BusinessProcessModelAndNotation
impl BusinessProcessModelAndNotation
pub fn is_structurally_correct(&self) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for BusinessProcessModelAndNotation
impl Clone for BusinessProcessModelAndNotation
Source§fn clone(&self) -> BusinessProcessModelAndNotation
fn clone(&self) -> BusinessProcessModelAndNotation
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 Graphable for BusinessProcessModelAndNotation
impl Graphable for BusinessProcessModelAndNotation
fn to_dot(&self) -> Result<VisualGraph>
Source§impl HasActivityKey for BusinessProcessModelAndNotation
impl HasActivityKey for BusinessProcessModelAndNotation
fn activity_key(&self) -> &ActivityKey
fn activity_key_mut(&mut self) -> &mut ActivityKey
Source§impl Importable for BusinessProcessModelAndNotation
impl Importable for BusinessProcessModelAndNotation
Source§const IMPORTER_PARAMETERS: &[ImporterParameter]
const IMPORTER_PARAMETERS: &[ImporterParameter]
Defines the parameters that the importer expects.
Source§const FILE_FORMAT_SPECIFICATION_LATEX: &str = "A Business Process Model and Notation (BPMN) model follows the OMG 2.0.2 standard~\\cite{omg2011bpmn}.
Currently, a sub-set of elements is supported."
const FILE_FORMAT_SPECIFICATION_LATEX: &str = "A Business Process Model and Notation (BPMN) model follows the OMG 2.0.2 standard~\\cite{omg2011bpmn}. Currently, a sub-set of elements is supported."
A latex piece that describes the file format.
fn import_as_object( reader: &mut dyn BufRead, parameter_values: &ImporterParameterValues, ) -> Result<EbiObject>
Source§fn import(
reader: &mut dyn BufRead,
_parameter_values: &ImporterParameterValues,
) -> Result<Self>where
Self: Sized,
fn import(
reader: &mut dyn BufRead,
_parameter_values: &ImporterParameterValues,
) -> Result<Self>where
Self: Sized,
Attempts to import from the reader.
The parameter_values must match the order given in
IMPORTER_PARAMETERS.fn default_importer_parameter_values() -> ImporterParameterValues
Source§impl TranslateActivityKey for BusinessProcessModelAndNotation
impl TranslateActivityKey for BusinessProcessModelAndNotation
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.
Auto Trait Implementations§
impl Freeze for BusinessProcessModelAndNotation
impl RefUnwindSafe for BusinessProcessModelAndNotation
impl Send for BusinessProcessModelAndNotation
impl Sync for BusinessProcessModelAndNotation
impl Unpin for BusinessProcessModelAndNotation
impl UnsafeUnpin for BusinessProcessModelAndNotation
impl UnwindSafe for BusinessProcessModelAndNotation
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 moreSource§impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
fn overflowing_into(self) -> (U, bool)
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, U> RoundingInto<U> for Twhere
U: RoundingFrom<T>,
impl<T, U> RoundingInto<U> for Twhere
U: RoundingFrom<T>,
fn rounding_into(self, rm: RoundingMode) -> (U, Ordering)
Source§impl<T, U> SaturatingInto<U> for Twhere
U: SaturatingFrom<T>,
impl<T, U> SaturatingInto<U> for Twhere
U: SaturatingFrom<T>,
fn saturating_into(self) -> U
Source§impl<T> ToDebugString for Twhere
T: Debug,
impl<T> ToDebugString for Twhere
T: Debug,
Source§fn to_debug_string(&self) -> String
fn to_debug_string(&self) -> String
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.