#include <iomanip>
#include <fstream>
#include "../shell/Shell.h"
#include "../shell/Wildcard.h"
#include "header.h"
#include "../utility/utility.h"
#include "PoolBase.h"
#include "Pool.h"
#include "BufPool.h"
#include "ReacBase.h"
#include "EnzBase.h"
#include "lookupVolumeFromMesh.h"
#include <sstream>
#include <set>
Functions | |
void | writeHeader (ofstream &fout, double simdt, double plotdt, double maxtime, double defaultVol) |
string | trimPath (Id id, Id comptid) |
Id | getEnzCplx (Id id) |
Id | getEnzMol (Id id) |
void | writeEnz (ofstream &fout, Id id, string colour, string textcolour, double x, double y, Id comptid) |
void | writeReac (ofstream &fout, Id id, string colour, string textcolour, double x, double y, Id comptid) |
unsigned int | getSlaveEnable (Id id) |
void | writePool (ofstream &fout, Id id, string colour, string textcolour, double x, double y, Id comptid, int comptIndex) |
void | writePlot (ofstream &fout, Id id, string colour, string textcolour, double x, double y) |
void | writeGui (ofstream &fout) |
void | writeFooter (ofstream &fout) |
void | storeMMenzMsgs (Id enz, vector< string > &msgs, Id comptid) |
void | storeCplxEnzMsgs (Id enz, vector< string > &msgs, Id comptid) |
void | storeEnzMsgs (Id enz, vector< string > &msgs, Id comptid) |
void | storeReacMsgs (Id reac, vector< string > &msgs, Id comptid) |
void | storeFunctionMsgs (Id func, vector< string > &msgs, map< double, pair< Id, int > > &compt_vol) |
void | storePlotMsgs (Id tab, vector< string > &msgs, Id pool, string bg, Id comptid) |
double | estimateSimTimes (double &simDt, double &plotDt) |
double | estimateDefaultVol (Id model) |
Returns an estimate of the default volume used in the model. | |
void | writeMsgs (ofstream &fout, const vector< string > &msgs) |
void | writeGroup (ofstream &fout, Id model) |
void | writeKkit (Id model, const string &fname) |
double estimateDefaultVol | ( | Id | model | ) |
Returns an estimate of the default volume used in the model.
References Field< A >::get().
Referenced by writeKkit().
double estimateSimTimes | ( | double & | simDt, | |
double & | plotDt | |||
) |
A bunch of heuristics to find good SimTimes to use for kkit. Returns runTime.
References Field< A >::get().
Referenced by writeKkit().
Referenced by writeEnz().
Referenced by writeEnz().
unsigned int getSlaveEnable | ( | Id | id | ) |
References Field< A >::get(), and trimPath().
Referenced by storeEnzMsgs().
References storeCplxEnzMsgs(), and storeMMenzMsgs().
Referenced by writeKkit().
void storeFunctionMsgs | ( | Id | func, | |
vector< string > & | msgs, | |||
map< double, pair< Id, int > > & | compt_vol | |||
) |
References Id::eref(), Neutral::parent(), trimPath(), and Id::value().
Referenced by writeKkit().
References Field< A >::get(), and trimPath().
Referenced by storeEnzMsgs().
References Id::path(), and trimPath().
Referenced by writeKkit().
Referenced by storeCplxEnzMsgs(), storeFunctionMsgs(), storeMMenzMsgs(), storePlotMsgs(), storeReacMsgs(), writePool(), and writeReac().
void writeEnz | ( | ofstream & | fout, | |
Id | id, | |||
string | colour, | |||
string | textcolour, | |||
double | x, | |||
double | y, | |||
Id | comptid | |||
) |
References Field< A >::get(), getEnzCplx(), getEnzMol(), and NA.
Referenced by writeKkit().
void writeFooter | ( | ofstream & | fout | ) |
Referenced by writeKkit().
void writeGroup | ( | ofstream & | fout, | |
Id | model | |||
) |
References Field< A >::get(), Id::path(), wildcardFind(), and y.
Referenced by writeKkit().
void writeGui | ( | ofstream & | fout | ) |
Referenced by writeKkit().
void writeHeader | ( | ofstream & | fout, | |
double | simdt, | |||
double | plotdt, | |||
double | maxtime, | |||
double | defaultVol | |||
) |
Referenced by writeKkit().
void writeKkit | ( | Id | model, | |
const string & | fname | |||
) |
References estimateDefaultVol(), estimateSimTimes(), Field< A >::get(), Id::path(), storeEnzMsgs(), storeFunctionMsgs(), storePlotMsgs(), storeReacMsgs(), wildcardFind(), writeEnz(), writeFooter(), writeGroup(), writeGui(), writeHeader(), writeMsgs(), writePlot(), writePool(), writeReac(), and y.
Referenced by testWriteKkit().
void writeMsgs | ( | ofstream & | fout, | |
const vector< string > & | msgs | |||
) |
Referenced by writeKkit().
void writePlot | ( | ofstream & | fout, | |
Id | id, | |||
string | colour, | |||
string | textcolour, | |||
double | x, | |||
double | y | |||
) |
Referenced by writeKkit().
void writePool | ( | ofstream & | fout, | |
Id | id, | |||
string | colour, | |||
string | textcolour, | |||
double | x, | |||
double | y, | |||
Id | comptid, | |||
int | comptIndex | |||
) |
References Field< A >::get(), NA, and trimPath().
Referenced by writeKkit().
void writeReac | ( | ofstream & | fout, | |
Id | id, | |||
string | colour, | |||
string | textcolour, | |||
double | x, | |||
double | y, | |||
Id | comptid | |||
) |
References Field< A >::get(), and trimPath().
Referenced by writeKkit().