30 IoSystem sys1(
"data/ios_system1.gen");
39 std::cout <<
"################################\n";
40 std::cout <<
"# tutorial, io system 1 \n";
42 std::cout <<
"################################\n";
48 std::cout <<
"warning: cannot execute graphviz' dot. " << std::endl;
52 sys1.
Write(
"tmp_ios_system1.gen");
60 std::cout <<
"################################\n";
61 std::cout <<
"# input events, output events\n";
64 std::cout <<
"################################\n";
81 std::cout <<
"################################\n";
82 std::cout <<
"# tutorial, manipulated io system 1 \n";
84 std::cout <<
"################################\n";
94 if(!isio) std::cout <<
"#### test FAILED (test case error) \n";
97 std::cout <<
"################################\n";
98 std::cout <<
"# tutorial, sys1 test io properties \n";
101 std::cout <<
"################################\n";
105 if(isfree) std::cout <<
"#### test PASSED (test case error) \n";
109 std::cout <<
"################################\n";
110 std::cout <<
"# tutorial, sys1 with free input\n";
112 std::cout <<
"################################\n";
115 sys1.
Write(
"tmp_ios_system1f.gen");
120 if(iswfree) std::cout <<
"#### test PASSED (test case error) \n";
123 std::cout <<
"################################\n";
124 std::cout <<
"# tutorial, sys1 error states\n";
126 std::cout <<
"################################\n";
#define FAUDES_TEST_DUMP(mes, dat)
Test protocol record macro ("mangle" filename for platform independance)
Set of indices with symbolic names.
Generator with I/O-system attributes.
StateSet InputStates(void) const
Retrieve all input states.
void ClrInputEvent(Idx index)
Unmark event as input event.
StateSet OutputStates(void) const
Retrieve all output states.
void SetInputState(Idx index)
Mark state as input state.
void ClrOutputEvent(Idx index)
Unmark event as output event.
void ClrOutputState(Idx index)
Unmark state as output state.
void SetOutputEvent(Idx index)
Mark event as output event.
EventSet OutputEvents(void) const
Retrieve all output events.
EventSet InputEvents(void) const
Retrieve all input events.
void SetOutputState(Idx index)
Mark state as output state.
void SetInputEvent(Idx index)
Mark event as input event.
void Write(const Type *pContext=0) const
Write configuration data to console.
void WriteStateSet(const StateSet &rStateSet) const
Write a stateset to console (no re-indexing).
void GraphWrite(const std::string &rFileName, const std::string &rOutFormat="", const std::string &rDotExec="dot") const
Produce graphical representation of this generator.
bool IsInputOmegaFree(IoSystem &rIoSystem)
Test whether the system behaviour has exhibits a free input.
bool IsInputLocallyFree(IoSystem &rIoSystem)
Test whether the system has a locally free input.
bool IsIoSystem(const IoSystem &rIoSystem, StateSet &rQU, StateSet &rQY, StateSet &rQErr)
Test whether the system satisfies basic I/O conditions.
void IoFreeInput(IoSystem &rIoSystem)
Enable all input events for each input state.
Includes all libFAUDES headers, incl plugings
libFAUDES resides within the namespace faudes.