|
| FluctEnv (Simulator aSim, XMLParser aBulkRoot) throws FileNotFoundException |
|
ArrayList< String > | envDic () throws FileNotFoundException |
|
double[][] | envProb () throws FileNotFoundException |
|
double[][] | envCumProb () throws FileNotFoundException |
|
Matrix | transMatrix () throws FileNotFoundException |
|
double | setEnv () throws FileNotFoundException |
|
ArrayList< Integer > | indexCalc () throws FileNotFoundException |
|
double | transProbVal () throws FileNotFoundException |
|
String | envTransName () throws FileNotFoundException |
|
| Bulk (Simulator aSim, XMLParser aBulkRoot) |
| Creates a bulk compartment object with attributes specified in the protocol file. More...
|
|
void | updateBulk (SoluteGrid[] soluteGrid, SoluteGrid[] reacGrid, double timeStep) |
| Updates the bulk solute concentration if the bulk is not constant. More...
|
|
void | updateChemostatBulk (SoluteGrid[] allSol, SoluteGrid[] reacGrid) |
| Method to update Bulk solute concentrations during a chemostat setup. More...
|
|
void | updateBulkByReaction (SoluteGrid[] reacGrid, double timeStep) |
| Update bulk concentration by reaction, determining reaction rate seen from reaction compartments. More...
|
|
void | updateBulkByGradient (SoluteGrid[] soluteGrid, double timeStep) |
| Update bulk concentration on the basis of the flow passed through the interface with the bulk compartment. More...
|
|
void | computeFlow (SoluteGrid aSG, DiscreteVector aDC, ContinuousVector flow) |
| Compute massic flow. More...
|
|
Boolean | contains (int soluteIndex) |
| Determine if a particular solute is in the bulk. More...
|
|
double | getValue (int soluteIndex) |
| Get the value of a particular solute in the bulk. More...
|
|
void | setValue (int soluteIndex, double value) |
| Set the value of a particular solute in the bulk. More...
|
|
String | getName () |
| Get the name of this bulk. More...
|
|
double | getTimeConstraint () |
| Return the time constraint of the bulk. More...
|
|
void | writeReport (ResultFile buffer) throws Exception |
| Writes a description of the bulk in the result file. More...
|
|
|
static ArrayList< String > | envName = new ArrayList<String>() |
|
static double[][] | envCumProb |
|
static double[][] | transitions |
|
static ArrayList< Integer > | indices = new ArrayList<Integer>() |
|
static ArrayList< String > | envTrans = new ArrayList<String>() |
|
static double | cumProb =0 |
|
static double | transProb = 0 |
|
static HashMap< String, Double > | envListTime = new HashMap<String, Double>() |
|
static ArrayList< String > | envNameList = new ArrayList<String>() |
|
static HashMap< String, Integer > | envIter = new HashMap<String, Integer>() |
|
static String | envStatus |
|
static double | counter = 0 |
|
This class is intended to randomly change the external environment felt by the agents. The transition between these different states is determined by a transition probability matrix whose values are in probability per hour. The correspondent cumulative probability matrix is used to decide the next state, simply because it avoids the problem of having 2 equal values (and thus having to decide randomly between them...). It has also been implemented the recalculation of the cumulative probability values according to the current time step (as long as it is lower or equal to 1h... since higher values would produce probabilities higher than 1...)
It has also been implemented a method to deterministically change the environmental conditions and their duration.
- Author
- SoniaMartins