Go to the documentation of this file.
19 int main( int argc, char* argv[])
23 cerr<< "usage: ./exefaudes <gen-File>"<<endl;
34 cout << "##########################################" << endl;
35 cout << "# interactive simulation of " << sim. Generator().Name() << endl;
36 cout << "# at state " << endl;
47 cout<< ">> Simulation is deadlocked."<<endl;
48 cout<< ">> Abort (a) or reset simulation (r)?"<<endl;
51 if(choice== "a") break;
52 else if(choice== "r") {
56 cerr<< ">> ignoring invalid choice"<<endl;
63 cout << ">> Time may pass up to " << etime. Str() << endl;
64 cout << ">> No events are enabled for " << einterval. Str() << endl;
65 cout << ">> Abort (a), or let time pass (t): ";
69 cout << ">> Time may pass up to " << etime. Str() << endl;
70 cout << ">> The following events are enabled for time " << einterval. Str() << endl;
72 cout<< ">> Abort (a), let time pass (t) or execute transition (e): ";
78 } else if(choice== "e") {
79 cout<< ">> Event index: ";
82 if(eevents. Exists(event)== false) {
83 cout<< ">> ignoring invalid event index "<<endl;
89 } else if (choice== "t") {
90 cout<< ">> Let time pass t: ";
93 if(! etime. In(time)) {
94 cout<< ">> ignoring invalid time "<<endl;
99 cout<< ">> ignoring invalid choice "<<endl;
const TimeInterval & EnabledTime() const
bool ExecuteTime(Time::Type time)
const EventSet & EnabledEvents() const
bool ExecuteEvent(Idx event)
void CurrentTime(Time::Type time)
void Generator(const TimedGenerator &rGen)
const TimeInterval & EnabledInterval() const
bool IsDeadlocked() const
std::string CurrentTimedStateStr(void) const
bool Exists(const Idx &rIndex) const
bool In(Time::Type time) const
std::string Str(void) const
void DWrite(const Type *pContext=0) const
int main(int argc, char *argv[])
libFAUDES 2.33b
--- 2025.05.07
--- c++ api documentaion by doxygen
|