public class InstantOutputObserver extends Observer
| Constructor and Description |
|---|
InstantOutputObserver(Simulator sim,
PrintWriter pw)
Creates the observer for a given simulator and a given
PrintWriter |
| Modifier and Type | Method and Description |
|---|---|
void |
activateReaction(int mu,
double tau,
Simulator.FireType fireType,
int times)
Prints event.
|
void |
finished()
Prints event.
|
void |
started()
Prints event.
|
void |
step()
Prints event.
|
void |
theta(double theta)
Prints event.
|
getLabelFormat, getNumSimulations, getPrintWriter, getSimulator, getTheta, print, setLabelFormat, setPrintWriter, setThetapublic InstantOutputObserver(Simulator sim, PrintWriter pw)
PrintWritersim - simulatorpw - PrintWriterpublic void activateReaction(int mu,
double tau,
Simulator.FireType fireType,
int times)
activateReaction 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 - TODOCopyright © 2007–2021. All rights reserved.