public class SBMLEventHandlerObserver extends TriggerObserver
Constructor and Description |
---|
SBMLEventHandlerObserver(Simulator sim,
SBMLNetwork net,
SBMLinterpreter interpreter,
org.sbml.jsbml.Event event)
Creates the observer.
|
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.
|
void |
setSimulatorAsync(Simulator sim) |
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.
|
String |
toString() |
boolean |
trigger()
Is executed, whenever a event can trigger (before step and during a theta event).
|
getLabelFormat, getNumSimulations, getPrintWriter, getSimulator, getTheta, print, setLabelFormat, setPrintWriter, setTheta
public SBMLEventHandlerObserver(Simulator sim, SBMLNetwork net, SBMLinterpreter interpreter, org.sbml.jsbml.Event event) throws org.sbml.jsbml.validator.ModelOverdeterminedException
sim
- the simulatornet
- the sbml networkinterpreter
- the sbmlInterpreter instance to calculate the node valuesevent
- the event object of the sbml modelorg.sbml.jsbml.validator.ModelOverdeterminedException
public 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 boolean trigger()
TriggerObserver
trigger
in class TriggerObserver
public void theta(double theta)
Observer
Observer.getTheta()
public void setSimulatorAsync(Simulator sim)
Copyright © 2007–2021. All rights reserved.