public class CellGrowthObserver extends Observer
This class is used for the LacZ examples, so at a cell division the amount of PLac (the promoter) is set to 1.
Constructor and Description |
---|
CellGrowthObserver(Simulator sim,
double generationTime,
double timeOffset)
Creates the observer for given simulator, generation time and a time offset (because the
simulator starts at time 0 and for one example it actually starts at time 1000)
|
Modifier and Type | Method and Description |
---|---|
void |
activateReaction(int mu,
double tau,
Simulator.FireType fireType,
int times)
Gets called before a reaction fires.
|
void |
finished()
Gets called when a simulation has finished, directly after the termination check.
|
long |
getNumSteps()
Gets the number of steps taken in one simulation
|
void |
started()
Gets called when the simulation has started after the initialization and before the termination
condition is checked the first time.
|
void |
step()
Gets called after each termination check and before
Simulator.performStep(fern.simulation.controller.SimulationController)
is called. |
void |
theta(double theta)
Gets called by simulators when a certain moment in time is reached.
|
getLabelFormat, getNumSimulations, getPrintWriter, getSimulator, getTheta, print, setLabelFormat, setPrintWriter, setTheta
public CellGrowthObserver(Simulator sim, double generationTime, double timeOffset)
sim
- the simulatorgenerationTime
- generation timetimeOffset
- time offsetpublic void activateReaction(int mu, double tau, Simulator.FireType fireType, int times)
Observer
activateReaction
in class Observer
mu
- the reaction which is supposed to firetau
- the time the reaction fires (at this time Simulator.getTime()
does not
necessarily yield the firing time)fireType
- the type of the firingtimes
- TODOpublic void finished()
Observer
public void started()
Observer
public void step()
Observer
Simulator.performStep(fern.simulation.controller.SimulationController)
is called.public void theta(double theta)
Observer
Observer.getTheta()
public long getNumSteps()
Copyright © 2007–2021. All rights reserved.