DiaDes  0.1
DIAgnosis of Discrete-Event System
Functions
GeneratePta.cc File Reference
#include <string>
#include <cmath>
#include <algorithm>
#include <fstream>
#include <sstream>
#include <diades/automata/ObservableComponent.hh>
#include <diades/automata/Event.hh>

Go to the source code of this file.

Functions

string replaceSpace (const string &label)
 
void exportToDesComp (const Component &ptaMoore, const string &fileName)
 
string stringOf (unsigned &counter)
 
void MooreEncoding (const string &filename)
 
void MealyEncodingV1 (const string &filename)
 
string encodeTargetState (unsigned id, const vector< string > &varNames)
 
string encodeSourceState (unsigned id, const vector< string > &varNames)
 
void component2Orange (const ObservableComponent &pta, ostream &os)
 
void MealyEncoding (const string &filename, const string &targetName)
 
int main (int argc, char **argv)
 

Function Documentation

◆ component2Orange()

void component2Orange ( const ObservableComponent pta,
ostream &  os 
)

◆ encodeSourceState()

string encodeSourceState ( unsigned  id,
const vector< string > &  varNames 
)

Definition at line 343 of file GeneratePta.cc.

Referenced by component2Orange().

◆ encodeTargetState()

string encodeTargetState ( unsigned  id,
const vector< string > &  varNames 
)

Definition at line 327 of file GeneratePta.cc.

Referenced by component2Orange().

◆ exportToDesComp()

void exportToDesComp ( const Component ptaMoore,
const string &  fileName 
)

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 533 of file GeneratePta.cc.

References MealyEncoding().

◆ MealyEncoding()

void MealyEncoding ( const string &  filename,
const string &  targetName 
)

◆ MealyEncodingV1()

void MealyEncodingV1 ( const string &  filename)

◆ MooreEncoding()

void MooreEncoding ( const string &  filename)

◆ replaceSpace()

string replaceSpace ( const string &  label)

Definition at line 19 of file GeneratePta.cc.

Referenced by exportToDesComp().

◆ stringOf()

string stringOf ( unsigned &  counter)

Definition at line 81 of file GeneratePta.cc.

Referenced by MooreEncoding().