|
||||||||||
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.InstantOutputObserver
public class InstantOutputObserver
Simply prints out every event that the simulator reports to the observer.
Constructor Summary | |
---|---|
InstantOutputObserver(Simulator sim,
PrintWriter pw)
Creates the observer for a given simulator and a given PrintWriter |
Method Summary | |
---|---|
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. |
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, toString, wait, wait, wait |
Constructor Detail |
---|
public InstantOutputObserver(Simulator sim, PrintWriter pw)
PrintWriter
sim
- simulatorpw
- PrintWriter
Method Detail |
---|
public void activateReaction(int mu, double tau, Simulator.FireType fireType, int times)
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()
finished
in class Observer
public void started()
started
in class Observer
public void step()
step
in class Observer
public void theta(double theta)
theta
in class Observer
theta
- moment in time
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |