#include "libfaudes.h"Go to the source code of this file.
Detailed DescriptionTutorial, timed parallel composition. Demonstratates synchronous composition of two timed automata by function faudes::TParallel /** @file tp_3_parallel.cpp
Tutorial, timed parallel composition.
Demonstratates synchronous composition of two timed automata by function faudes::TParallel
@ingroup Tutorials
@include tp_3_parallel.cpp
*/
#include "libfaudes.h"
// for simplicity we make the faudes namespace available to our program
using namespace faudes;
/////////////////
// main program
/////////////////
int main() {
// read two generators ...
TimedGenerator g1("data/tsimplemachine.gen");
TimedGenerator g2("data/tbuffer.gen");
// ... and perform parallel composition
TimedGenerator gres;
TParallel(g1,g2,gres);
// Report
std::cout << "######################################\n";
std::cout << "# t simple machine with buffer \n";
gres.DWrite();
std::cout << "######################################\n";
// Save to file
gres.Write("tmp_tmachinewithbuffer.gen");
// Test protocol
return 0;
}
Definition tp_tgenerator.h:100 std::string ToText(const std::string &rLabel="", const Type *pContext=0) const Definition cfl_types.cpp:191 void TParallel(const TGEN1 &rGen1, const TGEN2 &rGen2, TGENR &rResGen) Definition tp_tparallel.h:90 Definition cfl_agenerator.h:43 Definition in file tp_3_parallel.cpp. Function Documentation◆ main()
Definition at line 24 of file tp_3_parallel.cpp. libFAUDES 2.33k --- 2025.09.16 --- c++ api documentaion by doxygen |
|||||||||||||