pev_sparallel.h
Go to the documentation of this file.
1/** @file pev_sparallel.h Sshaped parallel composition */
2
3/* FAU Discrete Event Systems Library (libfaudes)
4
5 Copyright (C) 2023 Yiheng Tang
6 Copyright (C) 2025 Thomas Moor
7 Exclusive copyright is granted to Klaus Schmidt
8
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Lesser General Public
11 License as published by the Free Software Foundation; either
12 version 2.1 of the License, or (at your option) any later version.
13
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public
20 License along with this library; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef FAUDES_PEV_OPERATIONS
24#define FAUDES_PEV_OPERATIONS
25
26
27#include "corefaudes.h"
28#include "pev_pgenerator.h"
29
30namespace faudes {
31
32// generate merged event name
33std::string MergeEventNames (const std::set<std::string>& rNames);
34
35// perform SFC Parallel composition
36void SUParallel(
37 const pGenerator& rPGen1, const pGenerator& rPGen2,
38 std::map< std::pair<Idx,Idx>, Idx>& rCompositionMap,
39 EventSet& rMerge,
40 const EventSet& rPrivate,
41 EventPriorities& rPrios,
42 pGenerator& rPRes);
43
44// perform SFC Parallel composition
45void SUParallel(
46 const pGenerator& rPGen1, const pGenerator& rPGen2,
47 EventSet& rMerge,
48 const EventSet& rPrivate,
49 EventPriorities& rPrios,
50 pGenerator& rPRes);
51
52// the special fairness merge for SFC
53 void UParallel_MergeFairness(const pGenerator& rPGen1, const pGenerator& rPGen2, const Generator& rGen12, const EventSet& rMerge, FairnessConstraints& rFairRes);
54
55
56}// namespace
57#endif //.H
NameSet EventSet
vGenerator Generator
TBaseVector< EventSet > FairnessConstraints
TpEventSet< AttributePriority > EventPriorities
uint32_t Idx
void UParallel_MergeFairness(const pGenerator &rPGen1, const pGenerator &rPGen2, const Generator &rGen12, const EventSet &rMerge, FairnessConstraints &rFairRes)
void SUParallel(const pGenerator &rPGen1, const pGenerator &rPGen2, std::map< std::pair< Idx, Idx >, Idx > &rCompositionMap, EventSet &rMerge, const EventSet &rPrivate, EventPriorities &rPrios, pGenerator &rPRes)
TpGenerator< AttributePGenGl, AttributeVoid, AttributePriority, AttributeVoid > pGenerator
std::string MergeEventNames(const std::set< std::string > &rNames)

libFAUDES 2.33k --- 2025.09.16 --- c++ api documentaion by doxygen