|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfern.simulation.observer.Observer
fern.simulation.observer.TriggerObserver
fern.network.sbml.SBMLEventHandlerObserver
public class SBMLEventHandlerObserver
Observer which handles an event of a sbml model.
Constructor Summary | |
---|---|
SBMLEventHandlerObserver(Simulator sim,
SBMLNetwork net,
org.sbml.libsbml.Event event)
Creates the observer. |
Method Summary | |
---|---|
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). |
Methods inherited from class fern.simulation.observer.Observer |
---|
getLabelFormat, getNumSimulations, getPrintWriter, getSimulator, getTheta, print, setLabelFormat, setPrintWriter, setTheta |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SBMLEventHandlerObserver(Simulator sim, SBMLNetwork net, org.sbml.libsbml.Event event)
sim
- the simulatornet
- the sbml networkevent
- the event object of the sbml modelMethod Detail |
---|
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
finished
in class Observer
public void started()
Observer
started
in class Observer
public void step()
Observer
Simulator.performStep(fern.simulation.controller.SimulationController)
is called.
step
in class Observer
public boolean trigger()
TriggerObserver
trigger
in class TriggerObserver
public void theta(double theta)
Observer
Observer.getTheta()
theta
in class Observer
theta
- moment in timepublic void setSimulatorAsync(Simulator sim)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |