pub struct EventLogActivityProjection {
pub activities: Vec<String>,
pub act_to_index: HashMap<String, usize>,
pub traces: Vec<(Vec<usize>, u64)>,
}Expand description
Projection of an event log on just activity labels
Currently assumes a default activity name (ACTIVITY_NAME)
Fields§
§activities: Vec<String>All activities
The index of an activity corresponds to usize representation of activity
The reverse mapping is provided by the act_to_index HashMap
act_to_index: HashMap<String, usize>Mapping of activities to their usize representation
The reverse mapping is provided by the vec activities
traces: Vec<(Vec<usize>, u64)>Traces in the event log projection
Each pair represents one activity projection and the number of occurences in the log
Implementations§
Source§impl EventLogActivityProjection
impl EventLogActivityProjection
Sourcepub fn acts_to_names(&self, acts: &[usize]) -> Vec<String>
pub fn acts_to_names(&self, acts: &[usize]) -> Vec<String>
Convenience function to get sorted activity name lists back from a list of acts
Trait Implementations§
Source§impl Clone for EventLogActivityProjection
impl Clone for EventLogActivityProjection
Source§fn clone(&self) -> EventLogActivityProjection
fn clone(&self) -> EventLogActivityProjection
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 EventLogActivityProjection
impl Debug for EventLogActivityProjection
Source§impl Default for EventLogActivityProjection
impl Default for EventLogActivityProjection
Source§fn default() -> EventLogActivityProjection
fn default() -> EventLogActivityProjection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventLogActivityProjection
impl<'de> Deserialize<'de> for EventLogActivityProjection
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
Source§impl From<&EventLog> for EventLogActivityProjection
impl From<&EventLog> for EventLogActivityProjection
Source§impl<'a> From<&mut XESParsingTraceStream<'a>> for EventLogActivityProjection
impl<'a> From<&mut XESParsingTraceStream<'a>> for EventLogActivityProjection
Source§fn from(value: &mut XESParsingTraceStream<'a>) -> Self
fn from(value: &mut XESParsingTraceStream<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<XESParsingTraceStream<'a>> for EventLogActivityProjection
impl<'a> From<XESParsingTraceStream<'a>> for EventLogActivityProjection
Source§fn from(value: XESParsingTraceStream<'a>) -> Self
fn from(value: XESParsingTraceStream<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EventLogActivityProjection
impl RefUnwindSafe for EventLogActivityProjection
impl Send for EventLogActivityProjection
impl Sync for EventLogActivityProjection
impl Unpin for EventLogActivityProjection
impl UnwindSafe for EventLogActivityProjection
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