pub struct StochasticDirectlyFollowsModel {
pub activity_key: ActivityKey,
pub node_2_activity: Vec<Activity>,
pub empty_traces_weight: Fraction,
pub sources: Vec<NodeIndex>,
pub targets: Vec<NodeIndex>,
pub weights: Vec<Fraction>,
pub start_node_weights: Vec<Fraction>,
pub end_node_weights: Vec<Fraction>,
}Fields§
§activity_key: ActivityKey§node_2_activity: Vec<Activity>§empty_traces_weight: Fraction§sources: Vec<NodeIndex>§targets: Vec<NodeIndex>§weights: Vec<Fraction>§start_node_weights: Vec<Fraction>§end_node_weights: Vec<Fraction>Implementations§
Source§impl StochasticDirectlyFollowsModel
impl StochasticDirectlyFollowsModel
Sourcepub fn new(activity_key: ActivityKey) -> Self
pub fn new(activity_key: ActivityKey) -> Self
Creates a new stochastic directly follows model. This has the empty stochastic language, until a state or an empty trace is added.
pub fn has_empty_traces(&self) -> bool
pub fn can_terminate_in_node(&self, node: NodeIndex) -> bool
pub fn number_of_start_nodes(&self) -> usize
pub fn number_of_end_nodes(&self) -> usize
pub fn is_start_node(&self, node: NodeIndex) -> bool
pub fn is_end_node(&self, node: NodeIndex) -> bool
pub fn can_execute_edge(&self, edge: usize) -> bool
pub fn get_max_state(&self) -> usize
pub fn add_node(&mut self, activity: Activity) -> NodeIndex
pub fn add_empty_trace(&mut self, weight: &Fraction)
pub fn add_edge( &mut self, source: NodeIndex, target: NodeIndex, weight: Fraction, )
pub fn binary_search( &self, source: NodeIndex, target: NodeIndex, ) -> (bool, usize)
Trait Implementations§
Source§impl Clone for StochasticDirectlyFollowsModel
impl Clone for StochasticDirectlyFollowsModel
Source§fn clone(&self) -> StochasticDirectlyFollowsModel
fn clone(&self) -> StochasticDirectlyFollowsModel
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 From<DirectlyFollowsGraph> for StochasticDirectlyFollowsModel
impl From<DirectlyFollowsGraph> for StochasticDirectlyFollowsModel
Source§fn from(value: DirectlyFollowsGraph) -> Self
fn from(value: DirectlyFollowsGraph) -> Self
Converts to this type from the input type.
Source§impl From<StochasticDirectlyFollowsModel> for DirectlyFollowsModel
impl From<StochasticDirectlyFollowsModel> for DirectlyFollowsModel
Source§fn from(value: StochasticDirectlyFollowsModel) -> Self
fn from(value: StochasticDirectlyFollowsModel) -> Self
Converts to this type from the input type.
Source§impl From<StochasticDirectlyFollowsModel> for LabelledPetriNet
impl From<StochasticDirectlyFollowsModel> for LabelledPetriNet
Source§fn from(value: StochasticDirectlyFollowsModel) -> LabelledPetriNet
fn from(value: StochasticDirectlyFollowsModel) -> LabelledPetriNet
Converts to this type from the input type.
Source§impl From<StochasticDirectlyFollowsModel> for LolaNet
impl From<StochasticDirectlyFollowsModel> for LolaNet
Source§fn from(value: StochasticDirectlyFollowsModel) -> Self
fn from(value: StochasticDirectlyFollowsModel) -> Self
Converts to this type from the input type.
Source§impl From<StochasticDirectlyFollowsModel> for StochasticLabelledPetriNet
impl From<StochasticDirectlyFollowsModel> for StochasticLabelledPetriNet
Source§fn from(value: StochasticDirectlyFollowsModel) -> Self
fn from(value: StochasticDirectlyFollowsModel) -> Self
Converts to this type from the input type.
Source§impl Graphable for StochasticDirectlyFollowsModel
impl Graphable for StochasticDirectlyFollowsModel
fn to_dot(&self) -> Result<VisualGraph>
Source§impl HasActivityKey for StochasticDirectlyFollowsModel
impl HasActivityKey for StochasticDirectlyFollowsModel
fn activity_key(&self) -> &ActivityKey
fn activity_key_mut(&mut self) -> &mut ActivityKey
Source§impl TranslateActivityKey for StochasticDirectlyFollowsModel
impl TranslateActivityKey for StochasticDirectlyFollowsModel
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 StochasticDirectlyFollowsModel
impl RefUnwindSafe for StochasticDirectlyFollowsModel
impl Send for StochasticDirectlyFollowsModel
impl Sync for StochasticDirectlyFollowsModel
impl Unpin for StochasticDirectlyFollowsModel
impl UnwindSafe for StochasticDirectlyFollowsModel
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