#include <Simulation.h>
Public Member Functions | |
Simulation (void) | |
~Simulation (void) | |
void | setup (int, char **) |
void | run (void) |
void | analysis (void) |
Private Member Functions | |
void | calcModeSetup (void) |
void | visModeSetup (void) |
void | inputFileCheck (void) |
void | simulate (void) |
void | load (void) |
void | inputGenerator (void) |
void | ipause () |
void | print_help () |
void | patterns (void) |
Private Attributes | |
string | ROOTDIR |
string | SIMDIR |
string | NODESAVGDIR |
string | BITSDIR |
string | LOGICDIR |
string | EXTSDIR |
string | DUMP |
bool | noOutFiles |
int | n |
ofstream | visout |
ofstream | outBits |
ofstream | outInputBits |
ofstream | outAvg |
ofstream | outDosage |
string | visualFile |
string | ext |
string | bitsFileName |
string | inputBitsFileName |
string | runName |
string | in_specsFile |
string | in_logicFile |
string | in_patternSpecsFile |
string | in_patternNodesFile |
string | outputFile |
int | seedVal |
bool | seed |
bool | ND2TT |
bool | TT2ND |
bool | postPatterns |
bool | patternAnal |
bool | rand_init |
bool | rand_logicMut |
bool | rand_nodeInputs |
string | iTables |
bool | analysisMode |
int | mutRate_nodes |
int | mutRate_logic |
int | cycleSize |
string | cmd |
string | runDir |
string | avgFileName |
string | iNodeList |
vector< Matrix > | cycles |
bool | ptime |
int | runStart |
int | progStart |
bool | visMode |
bool | noBits |
bool | usePlugins |
bool | outputAll |
PluginManager | pManager |
Copyright (C) 2004-2008 Tomas Helikar & Mathbio Research Group, Department of Mathematics, University of Nebraska at Omaha
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
The Simulation class is the class which main interacts and runs the program, it checks the flags and makes desicions about which mode to run.
Simulation::Simulation | ( | void | ) |
Simulation constructor that initializs variables
Simulation::~Simulation | ( | void | ) |
Simulation destructor, currently empty
void Simulation::analysis | ( | void | ) |
This method runs differnt analysis through the analysis object based upon which analysis flags were used at the command line
void Simulation::calcModeSetup | ( | void | ) | [private] |
creates the appropriate directories for calc mode
void Simulation::inputFileCheck | ( | void | ) | [private] |
exits if the nessicary input files have not been provided
void Simulation::inputGenerator | ( | void | ) | [private] |
Uses the generator class to create a logic or truth table file
void Simulation::ipause | ( | ) | [private] |
This function pauses the program, used only in verbose mode
void Simulation::load | ( | void | ) | [private] |
load; currently unimplimented
void Simulation::patterns | ( | void | ) | [private] |
void Simulation::print_help | ( | ) | [private] |
A help function that lists the flags and their uses
void Simulation::run | ( | void | ) |
This function calls the differnt modes of ChemChains based upon which flags were used. The different modes are the File Converter, the analysis mode, and the main simulation.
void Simulation::setup | ( | int | argc, | |
char ** | argv | |||
) |
Setup, takes in argv, its length and cycles through argv to initialize flags, it then creates apropriate directories for the Simulation.
void Simulation::simulate | ( | void | ) | [private] |
This function represents the bulk of the program It creates a Boolean Network in the form of a NodeList and evaluates the network a set number of times, making some analysis throughout.
void Simulation::visModeSetup | ( | void | ) | [private] |
opens the appropriate file for vis mode
bool Simulation::analysisMode [private] |
string Simulation::avgFileName [private] |
string Simulation::BITSDIR [private] |
string Simulation::bitsFileName [private] |
string Simulation::cmd [private] |
vector< Matrix > Simulation::cycles [private] |
int Simulation::cycleSize [private] |
string Simulation::DUMP [private] |
string Simulation::ext [private] |
string Simulation::EXTSDIR [private] |
string Simulation::in_logicFile [private] |
string Simulation::in_patternNodesFile [private] |
string Simulation::in_patternSpecsFile [private] |
string Simulation::in_specsFile [private] |
string Simulation::iNodeList [private] |
string Simulation::inputBitsFileName [private] |
string Simulation::iTables [private] |
string Simulation::LOGICDIR [private] |
int Simulation::mutRate_logic [private] |
int Simulation::mutRate_nodes [private] |
int Simulation::n [private] |
bool Simulation::ND2TT [private] |
bool Simulation::noBits [private] |
string Simulation::NODESAVGDIR [private] |
bool Simulation::noOutFiles [private] |
ofstream Simulation::outAvg [private] |
ofstream Simulation::outBits [private] |
ofstream Simulation::outDosage [private] |
ofstream Simulation::outInputBits [private] |
bool Simulation::outputAll [private] |
string Simulation::outputFile [private] |
bool Simulation::patternAnal [private] |
PluginManager Simulation::pManager [private] |
bool Simulation::postPatterns [private] |
int Simulation::progStart [private] |
bool Simulation::ptime [private] |
bool Simulation::rand_init [private] |
bool Simulation::rand_logicMut [private] |
bool Simulation::rand_nodeInputs [private] |
string Simulation::ROOTDIR [private] |
string Simulation::runDir [private] |
string Simulation::runName [private] |
int Simulation::runStart [private] |
bool Simulation::seed [private] |
int Simulation::seedVal [private] |
string Simulation::SIMDIR [private] |
bool Simulation::TT2ND [private] |
bool Simulation::usePlugins [private] |
bool Simulation::visMode [private] |
ofstream Simulation::visout [private] |
string Simulation::visualFile [private] |