pub struct EventLog {
pub attributes: Attributes,
pub traces: Vec<Trace>,
pub extensions: Option<Vec<EventLogExtension>>,
pub classifiers: Option<Vec<EventLogClassifier>>,
pub global_trace_attrs: Option<Attributes>,
pub global_event_attrs: Option<Attributes>,
}Expand description
Event log consisting of a list of Traces and log Attributes
Fields§
§attributes: AttributesTop-level attributes
traces: Vec<Trace>Traces contained in log
extensions: Option<Vec<EventLogExtension>>XES Extensions
classifiers: Option<Vec<EventLogClassifier>>XES Event classifiers
global_trace_attrs: Option<Attributes>Global trace attributes
global_event_attrs: Option<Attributes>Global event attributes
Implementations§
Source§impl EventLog
impl EventLog
Sourcepub fn new() -> Self
pub fn new() -> Self
Initializes a new event log with no attributes, an empty trace list, no extensions, no classifiers, no global trace attributes, and no global event attributes.
Sourcepub fn clone_without_traces(&self) -> Self
pub fn clone_without_traces(&self) -> Self
Clones a new EventLog that contains the same attributes, extensions, classifiers,
global trace attributes, and global event attributes but does initially not contain any
traces.
Sourcepub fn get_classifier_by_name<S>(&self, name: S) -> Option<EventLogClassifier>
pub fn get_classifier_by_name<S>(&self, name: S) -> Option<EventLogClassifier>
Try to get the EventLogClassifier with the associated name
Sourcepub fn get_trace_attribute<'a>(
&'a self,
trace: &'a Trace,
key: &str,
) -> Option<&'a Attribute>
pub fn get_trace_attribute<'a>( &'a self, trace: &'a Trace, key: &str, ) -> Option<&'a Attribute>
Get a trace attribute value using a key
Uses global trace attributes of the event log (if any) as fallback
(i.e., uses the XESEditableAttribute::get_by_key_or_global function of Attributes internall)
Sourcepub fn get_event_attribute<'a>(
&'a self,
event: &'a Event,
key: &str,
) -> Option<&'a Attribute>
pub fn get_event_attribute<'a>( &'a self, event: &'a Event, key: &str, ) -> Option<&'a Attribute>
Get an event attribute value using a key
Uses global event attributes of the event log (if any) as fallback
(i.e., uses the XESEditableAttribute::get_by_key_or_global function of Attributes internall)
Sourcepub fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
pub fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventLog
impl<'de> Deserialize<'de> for EventLog
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>,
Source§impl From<&EventLog> for EventLogActivityProjection
impl From<&EventLog> for EventLogActivityProjection
impl StructuralPartialEq for EventLog
Auto Trait Implementations§
impl Freeze for EventLog
impl RefUnwindSafe for EventLog
impl Send for EventLog
impl Sync for EventLog
impl Unpin for EventLog
impl UnwindSafe for EventLog
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
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>
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>
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