CG_Gen::MealyMooreGenerator class

Base classes

class SimpleGenerator

Constructors, destructors, conversion operators

MealyMooreGenerator()
MealyMooreGenerator(uint_fast32_t i_seed)
MealyMooreGenerator(const GenerationParameters& i_param) explicit

Public functions

auto generatorMealy(uint32_t i_Inputs, uint32_t i_Outputs, uint32_t i_numStates, uint32_t i_seed, bool i_saveDOT_mmg) -> DotReturn
generatorMealy represents the generation of a sequential circuit of a Mealy machine.
auto generatorMoore(uint32_t i_Inputs, uint32_t i_Outputs, uint32_t i_numStates, uint32_t i_seed, bool i_saveDOT_mmg) -> DotReturn
generatorMoore represents the generation of a sequential circuit of a Moore machine.
auto generatorMealyMoore(const GenerationParameters& i_param) -> DotReturn
auto generatorMealyMoore() -> DotReturn
auto generatorDotReturnToGraphMealy(uint32_t i_Inputs, uint32_t i_Outputs, uint32_t i_numStates, uint32_t i_seed, bool i_saveDOT_mmg) -> GraphPtr
generatorDotReturnToGraphMealy represents the generation of a sequential circuit of a Mealy machine.
auto generatorDotReturnToGraphMoore(uint32_t i_Inputs, uint32_t i_Outputs, uint32_t i_numStates, uint32_t i_seed, bool i_saveDOT_mmg) -> GraphPtr
generatorDotReturnToGraphMoore represents the generation of a sequential circuit of a Moore machine.
auto generatorDotReturnToGraph(const GenerationParameters& i_param) -> GraphPtr
auto generatorDotReturnToGraph() -> GraphPtr

Function documentation

DotReturn CG_Gen::MealyMooreGenerator::generatorMealy(uint32_t i_Inputs, uint32_t i_Outputs, uint32_t i_numStates, uint32_t i_seed, bool i_saveDOT_mmg)

generatorMealy represents the generation of a sequential circuit of a Mealy machine.

Parameters
i_Inputs
i_Outputs
i_numStates The number of states in the graph
i_seed The seed used for randomizing transitions and outputs
i_saveDOT_mmg Flag for either creating (1) or not (0) of a dot file
Returns the created dot form of a graph

Generator creates a Mealy machine with random transitions and outputs based on the given parameters. The result is in a form of a dot file and can be later used to transform it into OrientedGraph.

DotReturn CG_Gen::MealyMooreGenerator::generatorMoore(uint32_t i_Inputs, uint32_t i_Outputs, uint32_t i_numStates, uint32_t i_seed, bool i_saveDOT_mmg)

generatorMoore represents the generation of a sequential circuit of a Moore machine.

Parameters
i_Inputs
i_Outputs
i_numStates The number of states in the graph
i_seed The seed used for randomizing transitions and outputs
i_saveDOT_mmg Flag for either creating (1) or not (0) of a dot file
Returns the created dot form of a graph

Generator creates a Moore machine with random transitions and outputs based on the given parameters. The result is in a form of a dot file and can be later used to transform it into OrientedGraph.

GraphPtr CG_Gen::MealyMooreGenerator::generatorDotReturnToGraphMealy(uint32_t i_Inputs, uint32_t i_Outputs, uint32_t i_numStates, uint32_t i_seed, bool i_saveDOT_mmg)

generatorDotReturnToGraphMealy represents the generation of a sequential circuit of a Mealy machine.

Parameters
i_Inputs
i_Outputs
i_numStates The number of states in the graph
i_seed The seed used for randomizing transitions and outputs
i_saveDOT_mmg Flag for either creating (1) or not (0) of a dot file
Returns OrientedGraph

Generator creates a Mealy machine with random transitions and outputs based on the given parameters. The result in a form of a Dotreturn is then transitioned into std::string content and used to create OrientedGraph, similar to DotToGraphGenerator

GraphPtr CG_Gen::MealyMooreGenerator::generatorDotReturnToGraphMoore(uint32_t i_Inputs, uint32_t i_Outputs, uint32_t i_numStates, uint32_t i_seed, bool i_saveDOT_mmg)

generatorDotReturnToGraphMoore represents the generation of a sequential circuit of a Moore machine.

Parameters
i_Inputs
i_Outputs
i_numStates The number of states in the graph
i_seed The seed used for randomizing transitions and outputs
i_saveDOT_mmg Flag for either creating (1) or not (0) of a dot file
Returns OrientedGraph

Generator creates a Mealy machine with random transitions and outputs based on the given parameters. The result in a form of a Dotreturn is then transitioned into std::string content and used to create OrientedGraph, similar to DotToGraphGenerator