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 copy 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 From<&EventLog> for EventLogActivityProjection
impl From<&EventLog> for EventLogActivityProjection
source§impl<'a, 'b> From<&'b mut XESParsingTraceStream<'a>> for EventLogActivityProjection
impl<'a, 'b> From<&'b 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 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