|
The Physiologist's Friend Simulation API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.unizh.ini.friend.simulation.AbstractAcceptsInput
ch.unizh.ini.friend.simulation.AbstractMonitor
ch.unizh.ini.friend.tests.OutputPrinter
public class OutputPrinter
Prints the output value of an ServesOutput
instance to a stream.
Field Summary | |
---|---|
protected String |
post
The string to append to the ouput. |
protected String |
pre
The string to prepend to the ouput. |
protected PrintStream |
stream
The stream to print to. |
Fields inherited from class ch.unizh.ini.friend.simulation.AbstractAcceptsInput |
---|
inputs |
Constructor Summary | |
---|---|
OutputPrinter(Collection inputs,
String pre,
String post,
PrintStream stream)
Initializes the instance to prepend a given string and append another given string on output on the given stream. |
|
OutputPrinter(ServesOutput input,
String pre,
String post,
PrintStream stream)
Initializes the instance to prepend a given string and append another given string on output on the given stream. |
Method Summary | |
---|---|
void |
compute(float dt)
Computes the new state of this component of the simulation. |
Methods inherited from class ch.unizh.ini.friend.simulation.AbstractMonitor |
---|
getInput, getInputs, setInput, setInputs, update |
Methods inherited from class ch.unizh.ini.friend.simulation.AbstractAcceptsInput |
---|
averageInputs, cloneObject, connectOneToAll, connectOneToOne, getCollectionInstance, integrateInputs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String pre
protected String post
protected PrintStream stream
Constructor Detail |
---|
public OutputPrinter(Collection inputs, String pre, String post, PrintStream stream)
inputs
- A collection of inputs.pre
- The string to prepend.post
- The string to append.stream
- The stream to write to.public OutputPrinter(ServesOutput input, String pre, String post, PrintStream stream)
input
- A collection of inputs.pre
- The string to prepend.post
- The string to append.stream
- The stream to write to.Method Detail |
---|
public void compute(float dt)
dt
- The time that has passed since the last invocation.
|
http://www.ini.unizh.ch/~tobi/friend | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |