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, setThetapublic 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.ModelOverdeterminedExceptionpublic void activateReaction(int mu,
double tau,
Simulator.FireType fireType,
int times)
ObserveractivateReaction in class Observermu - 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()
Observerpublic void started()
Observerpublic void step()
ObserverSimulator.performStep(fern.simulation.controller.SimulationController)
is called.public boolean trigger()
TriggerObservertrigger in class TriggerObserverpublic void theta(double theta)
ObserverObserver.getTheta()public void setSimulatorAsync(Simulator sim)
Copyright © 2007–2021. All rights reserved.