DiaDes
0.1
DIAgnosis of Discrete-Event System
|
#include <iostream>
#include <fstream>
#include <list>
#include <string>
#include <set>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <utils/Exceptions.hh>
#include <utils/CmdInterface.hh>
#include <automata/Event.hh>
#include <automata/ObservableComponent.hh>
Go to the source code of this file.
Functions | |
vector< string > | fileExtensions (numberOfFileExtensions) |
vector< string > | options (numberOfOptions) |
vector< bool > | isSet (numberOfOptions, false) |
void | initialiseOptions () |
void | readParameters (int argc, char *argv[], string &modelFile, string &outputFile, string &logFile, string &stateAbstractionFile, unordered_set< Event > &abstractedEvents) |
int | main (int argc, char *argv[]) |
Variables | |
unsigned | numberOfOptions = 6 |
unsigned | numberOfFileExtensions = 1 |
string | description ="Usage: abstract --help |\n\t [file.des_comp] [ [--events | --notevents] evt1 evt2 ....] [--output result.des_comp] [--verbose trace.log] [--state-abstractions filename]\n\n\t Compute the model resulting from the abstraction of evt1, evt2 on the standard output\n\tunless the optional output file is setup.\n\tAccept model from standard input\n\tThe option --state-abstractions allows to write in a file the resulting state abstractions" |
This file is the main file of the command abstract
.
Usage: abstract [file1.des_comp] [ [--events | --notevents] evt1 evt2 ....] [--output result.des_comp] [--verbose trace.log] [--state-abstractions filename]
Compute the model resulting from the abstraction of evt1, evt2 on the standard output unless the optional output file is setup. Accept models from the standard input The option –state-abstractions allows to write in a file the resulting state abstractions
Definition in file abstract.cc.
enum FileExtension |
Enumerator | |
---|---|
DESCOMP | |
DESCOMP | |
RULES | |
DESCOMP | |
DESCOMP | |
RULES | |
XML | |
ABSTRACTION | |
DIAGNOSER | |
DESCOMP | |
ARCHV | |
DESCOMP | |
RULES | |
XML | |
DESCOMP | |
RULES | |
XML | |
RULES |
Definition at line 33 of file abstract.cc.
enum Option |
Definition at line 32 of file abstract.cc.
vector<string> fileExtensions | ( | numberOfFileExtensions | ) |
Referenced by initialiseOptions(), and readParameters().
void initialiseOptions | ( | ) |
Definition at line 44 of file abstract.cc.
References DESCOMP, EVENTS, fileExtensions(), HELP, Diades::Utils::LgProcess, Diades::Utils::log(), NOTEVENTS, options(), OUTPUT, readParameters(), STATEABSTRACTIONS, and VERBOSE.
Referenced by main().
vector<bool> isSet | ( | numberOfOptions | , |
false | |||
) |
Referenced by main(), and readParameters().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 71 of file abstract.cc.
References Diades::Automata::Component::importDesCompModel(), initialiseOptions(), isSet(), NOTEVENTS, readParameters(), Diades::Utils::saveLog(), and toStream().
vector<string> options | ( | numberOfOptions | ) |
Referenced by initialiseOptions(), main(), and readParameters().
void readParameters | ( | int | argc, |
char * | argv[], | ||
string & | modelFile, | ||
string & | outputFile, | ||
string & | logFile, | ||
string & | stateAbstractionFile, | ||
unordered_set< Event > & | abstractedEvents | ||
) |
Definition at line 207 of file abstract.cc.
References DESCOMP, description, EVENTS, fileExtensions(), Diades::Utils::getFileExtension(), HELP, isSet(), NOTEVENTS, options(), OUTPUT, printError(), printUsage(), STATEABSTRACTIONS, and VERBOSE.
Referenced by initialiseOptions(), and main().
string description ="Usage: abstract --help |\n\t [file.des_comp] [ [--events | --notevents] evt1 evt2 ....] [--output result.des_comp] [--verbose trace.log] [--state-abstractions filename]\n\n\t Compute the model resulting from the abstraction of evt1, evt2 on the standard output\n\tunless the optional output file is setup.\n\tAccept model from standard input\n\tThe option --state-abstractions allows to write in a file the resulting state abstractions" |
Definition at line 42 of file abstract.cc.
Referenced by readParameters().
unsigned numberOfFileExtensions = 1 |
Definition at line 35 of file abstract.cc.
unsigned numberOfOptions = 6 |
Definition at line 34 of file abstract.cc.