Source code for pm4py.algo.discovery.inductive.util.petri_el_count

'''
    This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

    PM4Py is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    PM4Py is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with PM4Py.  If not, see <https://www.gnu.org/licenses/>.
'''
[docs]class Counts(object): """ Shared variables among executions """ def __init__(self): """ Constructor """ self.num_places = 0 self.num_hidden = 0 self.num_visible_trans = 0 self.dict_skips = {} self.dict_loops = {}
[docs] def inc_places(self): """ Increase the number of places """ self.num_places = self.num_places + 1
[docs] def inc_no_hidden(self): """ Increase the number of hidden transitions """ self.num_hidden = self.num_hidden + 1
[docs] def inc_no_visible(self): """ Increase the number of visible transitions """ self.num_visible_trans = self.num_visible_trans + 1