Mutator Class Reference
#include <Mutator.h>
List of all members.
Public Member Functions |
| | Mutator (void) |
| | Mutator Constructor.
|
| | ~Mutator (void) |
| | Mutator destructor.
|
| void | randomizeInputs (const string &, const string &, const float &) |
| void | randomizeInputs2 (const string &, const string &, const float &) |
| void | mutateTables (const string &, const string &, const float &) |
Private Member Functions |
| int | numOfLines (void) |
| int | numOfNodeInputs (void) |
| bool | cchainToTables (const string &) |
| bool | tablesToCChain (const string &) |
| void | addNodes (const vector< string > &) |
| void | addNode (const string &, const int &) |
| void | adjustOutDegree (const vector< string > &) |
| vector< string > | nodesWithOutDeg (const int &) |
| void | printNodes () |
| int | find_id (const string &) |
| | finds the id of a node by it's name
|
| string | find_name (const int &) |
| | finds the name of a node by it's id
|
| void | print_nodes (void) |
| | prints the list of nodes
|
| void | show_tables (void) |
| bool | read_nodes (const string &) |
| | Read in the list of nodes from the input file.
|
| bool | read_tables (const bool &) |
| | Read the truth tables for each node.
|
| void | err_exit (const string &) |
| vector< string > | get_states (Ttable &, const bool &) |
| void | decToBin (int, string &) |
| | convert decimal to binary
|
Private Attributes |
| vector< Ttable * > | tables |
| map< string, vector< int > > | nodeLst |
Friends |
| class | Ttable |
Detailed Description
The mutator class assists in creating mutations in the input files
Constructor & Destructor Documentation
| Mutator::Mutator |
( |
void |
|
) |
[inline] |
| Mutator::~Mutator |
( |
void |
|
) |
[inline] |
Member Function Documentation
| void Mutator::addNode |
( |
const string & |
node, |
|
|
const int & |
inDeg | |
|
) |
| | [private] |
Adds the node on string node
| void Mutator::addNodes |
( |
const vector< string > & |
nodes |
) |
[private] |
Adds the nodes on vector nodes
| void Mutator::adjustOutDegree |
( |
const vector< string > & |
nodes |
) |
[private] |
| bool Mutator::cchainToTables |
( |
const string & |
in |
) |
[private] |
Extracts the input tables from an input file
| void Mutator::decToBin |
( |
int |
, |
|
|
string & |
| |
|
) |
| | [private] |
convert decimal to binary
| void Mutator::err_exit |
( |
const string & |
msg |
) |
[private] |
| int Mutator::find_id |
( |
const string & |
|
) |
[private] |
finds the id of a node by it's name
| string Mutator::find_name |
( |
const int & |
|
) |
[private] |
finds the name of a node by it's id
| vector< string > Mutator::get_states |
( |
Ttable & |
t, |
|
|
const bool & |
val | |
|
) |
| | [private] |
Gets the states of nodes who are false(I think?)
| void Mutator::mutateTables |
( |
const string & |
in, |
|
|
const string & |
out, |
|
|
const float & |
percent | |
|
) |
| | |
Introduces mutations to the input table of a node
| vector< string > Mutator::nodesWithOutDeg |
( |
const int & |
deg |
) |
[private] |
| int Mutator::numOfLines |
( |
void |
|
) |
[private] |
Returns the number of lines
| int Mutator::numOfNodeInputs |
( |
void |
|
) |
[private] |
Returns the number of node inputs
| void Mutator::print_nodes |
( |
void |
|
) |
[private] |
| void Mutator::printNodes |
( |
void |
|
) |
[private] |
| void Mutator::randomizeInputs |
( |
const string & |
in, |
|
|
const string & |
out, |
|
|
const float & |
percent | |
|
) |
| | |
Randomizes the inputs in an input file
| void Mutator::randomizeInputs2 |
( |
const string & |
in, |
|
|
const string & |
out, |
|
|
const float & |
percent | |
|
) |
| | |
Randomizes the inputs in an input file
| bool Mutator::read_nodes |
( |
const string & |
|
) |
[private] |
Read in the list of nodes from the input file.
| bool Mutator::read_tables |
( |
const bool & |
|
) |
[private] |
Read the truth tables for each node.
| void Mutator::show_tables |
( |
void |
|
) |
[private] |
| bool Mutator::tablesToCChain |
( |
const string & |
out |
) |
[private] |
Writes the input tables to a new file
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following files: