ebi_objects 0.3.182

Objects for Ebi - a stochastic process mining utility
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::{CompressedEventLogXes, EventLogCsv, EventLogXes};
use ebi_arithmetic::anyhow::Error;

impl From<EventLogXes> for CompressedEventLogXes {
    fn from(value: EventLogXes) -> Self {
        log::info!("Convert XES event log into XES compressed event log.");
        Self { log: value }
    }
}

impl TryFrom<EventLogCsv> for CompressedEventLogXes {
    type Error = Error;

    fn try_from(value: EventLogCsv) -> Result<Self, Self::Error> {
        let xes: EventLogXes = value.try_into()?;
        Ok(xes.into())
    }
}