DelaySim
Class DDA

java.lang.Object
  extended by DelaySim.DDA

public class DDA
extends java.lang.Object

A class describing a reaction-based system to be simulated by the Delay Stochastic Simulation Algorithm where reactions follow the delay-as-duration approach.


Field Summary
 Reaction[] R
          the set of reactions both delayed and non-delayed
 int[] x
          the simulation state
 
Constructor Summary
DDA(Reaction[] reactions_d, int[] state)
          Constructor for a DDA object.
 
Method Summary
 void print()
          Print a summary on this system.
 void simulate(double t0, double T)
          Execute a DDA simulation for this system starting at time t0 up to time T.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

R

public Reaction[] R
the set of reactions both delayed and non-delayed


x

public int[] x
the simulation state

Constructor Detail

DDA

public DDA(Reaction[] reactions_d,
           int[] state)
Constructor for a DDA object.

Parameters:
reactions_d - the reactions;
state - the initial state vector;
Method Detail

simulate

public void simulate(double t0,
                     double T)
Execute a DDA simulation for this system starting at time t0 up to time T.

Parameters:
t0 - initial time;
T - stop time;

print

public void print()
Print a summary on this system.