DiaDes
0.1
DIAgnosis of Discrete-Event System
|
Main file of the component_info
command.
More...
#include <vector>
#include <string>
#include <diades/utils/Verbose.hh>
#include <diades/automata/ObservableComponent.hh>
#include "CmdInterface.hh"
Go to the source code of this file.
Functions | |
vector< string > | fileExtensions (numberOfFileExtensions) |
vector< string > | options (numberOfOptions) |
vector< bool > | isSet (numberOfOptions, false) |
string | printStatistics (const ObservableComponent &component) |
void | initialiseOptions () |
int | main (int argc, char **argv) |
Variables | |
unsigned | numberOfOptions = 15 |
unsigned | numberOfFileExtensions = 1 |
string | description = "Usage:\t component_info --help |\n\t\t\t file.des_comp \t (--events | --events_number\n\t\t\t\t\t | --states | --states_number\n\t\t\t\t\t | --transitions | --transitions_number\n\t\t\t\t\t | --observables | --observables_number \n\t\t\t\t\t | --unobservables | --unobservables_number\n\t\t\t\t\t | --initial_states | --initial_states_number)\n\t\t\t\t\t | --name | --statistics) \n\n\n Print on the standard output the information associated to the given option." |
Main file of the component_info
command.
Usage: component_info --help | file.des_comp (--events | --events_number | --states | --states_number | --transitions | --transitions_number | --observables | --observables_number | --unobservables | --unobservables_number | --initial_states | --initial_states_number | --name | --statistics) Print on the standard output the information associated to the given option.
Definition in file ComponentInfo.cc.
enum Extension |
Enumerator | |
---|---|
DESCOMP | |
XML |
Definition at line 48 of file ComponentInfo.cc.
enum Option |
Definition at line 42 of file ComponentInfo.cc.
vector<string> fileExtensions | ( | numberOfFileExtensions | ) |
Referenced by initialiseOptions(), and main().
void initialiseOptions | ( | ) |
Definition at line 62 of file ComponentInfo.cc.
References DESCOMP, EVENTNB, EVENTS, fileExtensions(), HELP, INITIALSTATENB, INITIALSTATES, NAME, OBSERVABLENB, OBSERVABLES, options(), STATENB, STATES, STATISTICS, TRANSITIONNB, TRANSITIONS, UNOBSERVABLENB, and UNOBSERVABLES.
Referenced by main().
vector<bool> isSet | ( | numberOfOptions | , |
false | |||
) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Main function of the program component_info
Basically, this function analyses the parameters, loads the model and prints the required pieces of information.
argc | the number of parameters |
argv | the list of parameters |
Definition at line 92 of file ComponentInfo.cc.
References DESCOMP, description, Diades::Utils::LoggerFactory::destroy(), Diades::Automata::Event::destroyEvents(), Diades::Automata::Component::eventBegin(), Diades::Automata::Component::eventEnd(), EVENTNB, EVENTS, fileExtensions(), Diades::CmdInterface::fileSuffixOk(), Diades::Automata::Component::getEvent(), Diades::Automata::Component::getLabel(), HELP, Diades::Automata::Component::importDesCompModel(), initialiseOptions(), Diades::Automata::Component::initialStateBegin(), Diades::Automata::Component::initialStateEnd(), INITIALSTATENB, INITIALSTATES, Diades::Automata::ObservableMask::isUnobservable(), Diades::Automata::ObservableComponent::mask(), NAME, Diades::Automata::Component::name(), Diades::Automata::Component::numberOfEvents(), Diades::Automata::Component::numberOfInitialStates(), Diades::Automata::ObservableMask::numberOfObservableEvents(), Diades::Automata::Component::numberOfStates(), Diades::Automata::Component::numberOfTransitions(), Diades::Automata::ObservableComponent::observableBegin(), Diades::Automata::ObservableComponent::observableEnd(), OBSERVABLENB, OBSERVABLES, options(), Diades::CmdInterface::printCommandLineError(), printStatistics(), printUsage(), setVerboseLevel(), Diades::Automata::Component::stateBegin(), Diades::Automata::Component::stateEnd(), STATENB, STATES, STATISTICS, Diades::Automata::Component::transitionBegin(), Diades::Automata::Component::transitionEnd(), TRANSITIONNB, TRANSITIONS, UNOBSERVABLENB, UNOBSERVABLES, and Diades::Utils::VbOutput.
vector<string> options | ( | numberOfOptions | ) |
Referenced by initialiseOptions(), and main().
string printStatistics | ( | const ObservableComponent & | component | ) |
Definition at line 337 of file ComponentInfo.cc.
References Diades::Automata::Component::getEvent(), Diades::Automata::Component::inputTransitionBegin(), Diades::Automata::Component::inputTransitionEnd(), Diades::Automata::ObservableMask::isObservable(), Diades::Automata::ObservableComponent::mask(), Diades::Automata::Component::name(), Diades::Automata::Component::numberOfStates(), Diades::Automata::Component::numberOfTransitions(), Diades::Automata::ObservableMask::observableBegin(), Diades::Automata::ObservableMask::observableEnd(), Diades::Automata::Component::outputTransitionBegin(), Diades::Automata::Component::outputTransitionEnd(), Diades::Automata::Component::stateBegin(), and Diades::Automata::Component::stateEnd().
Referenced by main().
string description = "Usage:\t component_info --help |\n\t\t\t file.des_comp \t (--events | --events_number\n\t\t\t\t\t | --states | --states_number\n\t\t\t\t\t | --transitions | --transitions_number\n\t\t\t\t\t | --observables | --observables_number \n\t\t\t\t\t | --unobservables | --unobservables_number\n\t\t\t\t\t | --initial_states | --initial_states_number)\n\t\t\t\t\t | --name | --statistics) \n\n\n Print on the standard output the information associated to the given option." |
Definition at line 58 of file ComponentInfo.cc.
Referenced by main().
unsigned numberOfFileExtensions = 1 |
Definition at line 51 of file ComponentInfo.cc.
unsigned numberOfOptions = 15 |
Definition at line 50 of file ComponentInfo.cc.