|
Go to the documentation of this file.
49 g3. Read( "data/mtc_generator_1.gen");
55 g4. Write( "tmp_mtc_generator_1.gen");
56 g1. Write( "tmp_mtc_generator_2.gen");
59 std::cout << "##########################################" << std::endl;
60 std::cout << "# mtcgenerators - constructors and file io" << std::endl;
61 std::cout << std::endl << "# MtcSystem without colors:" << std::endl << std::endl;
63 std::cout << std::endl << "# MtcSystem with colors:" << std::endl << std::endl;
65 std::cout << std::endl << "# same MtcSystem, but read from file using the Read() method:" << std::endl << std::endl;
67 std::cout << "##########################################" << std::endl << std::endl;
78 g1. DotWrite( "tmp_mtc_generator_1.dot");
101 g1. Write( "tmp_mtc_generator_3.gen");
109 g1. Write( "tmp_mtc_generator_4.gen");
114 std::cout << "Index of color \"high\": " << c3 << std::endl;
118 std::cout << "Color name for index " << c3 << ": " << color3 << std::endl;
124 g1. Write( "tmp_mtc_generator_5.gen");
131 g1. Write( "tmp_mtc_generator_6.gen");
138 g1. Write( "tmp_mtc_generator_7.gen");
145 g1. Write( "tmp_mtc_generator_8.gen");
152 g1. Write( "tmp_mtc_generator_9.gen");
160 std::cout << "Color name for index " << c1 << ": " << name << std::endl;
165 std::cout << "Color c1 does not exist in g1 anymore" << std::endl;
167 std::cout << "Color c1 exists in g1" << std::endl;
171 std::cout << "State s2 is not colored by color c1" << std::endl;
173 std::cout << "State s1 is colored by color " << g1. CStr(c1) << std::endl;
222 std::cout << "gen: Color name of c1 = " << gen. ColorName(c1) << std::endl;
223 std::cout << "gen: Color index of first = " << gen. ColorIndex( "first") << std::endl;
229 std::cout << "gen: Color name of c1 = " << gen. ColorName(c1) << std::endl;
230 std::cout << "gen: Color index of first = " << gen. ColorIndex( "first") << std::endl;
236 std::cout << "copygen: Color name of c1 = " << copygen. ColorName(c1) << std::endl;
237 std::cout << "copygen: Color index of first = " << copygen. ColorIndex( "first") << std::endl;
241 if (!gen. ExistsColor(c1)) std::cout << "gen: Index c1 does not exist!" << std::endl;
242 else std::cout << "gen: Index c1 exists!" << std::endl;
244 std::cout << "gen: Color name of c1 = " << gen. ColorName(c1) << std::endl;
247 std::cout << "gen: Color name of c1 does not exist any more" << std::endl;
250 if (!gen. ExistsColor(c3)) std::cout << "gen: Index c3 does not exist!" << std::endl;
251 else std::cout << "gen: Index c3 exists!" << std::endl;
253 std::cout << "gen: Color name of c3 = " << gen. ColorName(c1) << std::endl;
256 std::cout << "gen: Color name of c3 does not exist any more" << std::endl;
259 if (!copygen. ExistsColor(c1)) std::cout << "copygen: Index c1 does not exist!" << std::endl;
260 else std::cout << "copygen: Index c1 exists!" << std::endl;
262 std::cout << "copygen: Color name of c1 = " << copygen. ColorName(c1) << std::endl;
265 std::cout << "copygen: Color name of c1 does not exist any more" << std::endl;
268 if (!copygen. ExistsColor(c3)) std::cout << "copygen: Index c3 does not exist!" << std::endl;
269 else std::cout << "copygen: Index c3 exists!" << std::endl;
271 std::cout << "copygen: Color name of c3 = " << copygen. ColorName(c1) << std::endl;
274 std::cout << "copygen: Color name of c3 does not exist any more" << std::endl;
bool SetTransition(Idx x1, Idx ev, Idx x2)
std::string ColorName(Idx colorIndex) const
void NewColorSymbolTable()
bool ExistsColor(Idx colorIndex) const
virtual TmtcGenerator & Assign(const Type &rSrc)
void Colors(ColorSet &rColors) const
void DelColor(Idx stateIndex, const std::string &rColorName)
virtual void DotWrite(const std::string &rFileName) const
Idx ColorIndex(const std::string &rColorName) const
Idx InsColoredState(const std::string &rStateName, const std::string &rColorName)
void ClearStateAttributes()
Idx InsColor(Idx stateIndex, const std::string &rColorName)
std::string CStr(Idx index) const
void DWrite(const Type *pContext=0) const
void Read(const std::string &rFileName, const std::string &rLabel="", const Type *pContext=0)
void Write(const Type *pContext=0) const
void GraphWrite(const std::string &rFileName, const std::string &rOutFormat="", const std::string &rDotExec="dot") const
virtual void ClrStateAttribute(Idx index)
libFAUDES 2.33b
--- 2025.05.07
--- c++ api documentaion by doxygen
|